All Projects → cebor → Angular Highcharts

cebor / Angular Highcharts

Licence: mit
Highcharts directive for Angular

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Angular Highcharts

Aachartcore Kotlin
📈📊⛰⛰⛰An elegant modern declarative data visualization chart framework for Android . Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types.极其精美而又强大的 Android 数据可视化图表框架,支持柱状图、条形图、折线图、曲线图、折线填充图、曲线填充图、气泡图、扇形图、环形图、散点图、雷达图、混合图等各种类型的多达几十种的信息图图表,完全满足工作所需.
Stars: ✭ 332 (+64.36%)
Mutual labels:  chart, highcharts
chart
📊📉 Add beautiful and reusable charts with one line of ruby for Rails 5.x
Stars: ✭ 42 (-79.21%)
Mutual labels:  chart, highcharts
React Jsx Highcharts
Highcharts built with proper React components
Stars: ✭ 336 (+66.34%)
Mutual labels:  chart, highcharts
Aachartcore
📈📊☕️☕️☕️An elegant modern declarative data visualization chart framework for Android. Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types.极其精美而又强大的 Android 数据可视化图表框架,支持柱状图、条形图、折线图、曲线图、折线填充图、曲线填充图、气泡图、扇形图、环形图、散点图、雷达图、混合图等各种类型的多达几十种的信息图图表,完全满足工作所需.
Stars: ✭ 424 (+109.9%)
Mutual labels:  chart, highcharts
Aachartkit
📈📊🚀🚀🚀An elegant modern declarative data visualization chart framework for iOS, iPadOS and macOS. Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types. 极其精美而又强大的跨平台数据可视化图表框架,支持柱状图、条形图、折…
Stars: ✭ 4,358 (+2057.43%)
Mutual labels:  chart, highcharts
Highcharts trendline
HighCharts demo of scatter plot, including a trend line
Stars: ✭ 79 (-60.89%)
Mutual labels:  chart, highcharts
Chartkick.py
Create beautiful Javascript charts with minimal code
Stars: ✭ 695 (+244.06%)
Mutual labels:  chart, highcharts
Highcharts Chart
Polymer Element wrapper for highcharts library. Seamlessly create various types of charts from one element.
Stars: ✭ 97 (-51.98%)
Mutual labels:  chart, highcharts
Sunburstr
R htmlwidget for interactive sunburst plots
Stars: ✭ 177 (-12.38%)
Mutual labels:  chart
V Chart Plugin
Easily bind a chart to the data stored in your Vue.js components.
Stars: ✭ 188 (-6.93%)
Mutual labels:  chart
Computator.net
Computator.NET is a special kind of numerical software that is fast and easy to use but not worse than others feature-wise. It's features include: - Real and complex functions charts - Real and complex calculator - Real functions numerical calculations including different methods - Over 107 Elementary functions - Over 141 Special functions - Over 21 Matrix functions and operations - Scripting language with power to easy computations including matrices - You can declare your own custom functions with scripting language
Stars: ✭ 174 (-13.86%)
Mutual labels:  chart
Jmh Visualizer
Visually explore your JMH Benchmarks
Stars: ✭ 180 (-10.89%)
Mutual labels:  chart
Charts
⚡ Laravel Charts — Build charts using laravel. The laravel adapter for Chartisan.
Stars: ✭ 2,337 (+1056.93%)
Mutual labels:  chart
Lchart
Simple & useful chart for Android
Stars: ✭ 177 (-12.38%)
Mutual labels:  chart
Sprite
🖌 Draw charts in code. Render in real-time. Embed anywhere as .png.
Stars: ✭ 201 (-0.5%)
Mutual labels:  chart
Ilgizar Candlestick Panel
Grafana candlestick panel plugin
Stars: ✭ 175 (-13.37%)
Mutual labels:  chart
React Component Echarts
React component echarts. 组件式百度图表。
Stars: ✭ 175 (-13.37%)
Mutual labels:  chart
Helm Gcs
Manage Helm 3 repositories on Google Cloud Storage 🔐 **privately**
Stars: ✭ 202 (+0%)
Mutual labels:  chart
Swiftcharts
Easy to use and highly customizable charts library for iOS
Stars: ✭ 2,336 (+1056.44%)
Mutual labels:  chart
Tui.editor
🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
Stars: ✭ 14,016 (+6838.61%)
Mutual labels:  chart

angular-highcharts

NPM version NPM downloads

This is a Highcharts directive for Angular.

Requirements

{
  "angular": ">=10.0.0",
  "highcharts": ">=7.0.0"
}

Installation

yarn

# install angular-highcharts and highcharts
yarn add angular-highcharts highcharts

npm

# install angular-highcharts and highcharts
npm i --save angular-highcharts highcharts

Usage Example

// app.module.ts
import { ChartModule } from 'angular-highcharts';

@NgModule({
  imports: [
    ChartModule // add ChartModule to your imports
  ]
})
export class AppModule {}
// chart.component.ts
import { Chart } from 'angular-highcharts';

@Component({
  template: `
    <button (click)="add()">Add Point!</button>
    <div [chart]="chart"></div>
  `
})
export class ChartComponent {
  chart = new Chart({
    chart: {
      type: 'line'
    },
    title: {
      text: 'Linechart'
    },
    credits: {
      enabled: false
    },
    series: [
      {
        name: 'Line 1',
        data: [1, 2, 3]
      }
    ]
  });

  // add point to chart serie
  add() {
    this.chart.addPoint(Math.floor(Math.random() * 10));
  }
}

API Docs

Chart

The Chart object.

Type: class

Constructor

new Chart(options: Options)

Properties

ref: Highcharts.Chart;

Deprecated. Please use ref$.

ref$: Observeable<Highcharts.Chart>

Observeable that emits a Highcharts.Chart - Offical Chart API Docs

Methods

addPoint(point: Point, [serieIndex: number = 0]): void

Adds a point to a serie

removePoint(pointIndex: number, [serieIndex: number = 0], [redraw: boolean = true], [shift: boolean = false]): void

Removes a point from a serie

addSeries(series: ChartSerie): void

Adds a series to the chart

removeSeries(seriesIndex: number): void

Remove series from the chart

StockChart

The Chart object.

Type: class

Constructor

new StockChart(options);

Properties

ref: Highstock.Chart;

Deprecated. Please use ref$.

ref$: Observeable<Highstock.Chart>

Observeable that emits a Highstock.Chart

MapChart

The Chart object.

Type: class

Constructor

new MapChart(options);

Properties

ref;

Deprecated. Please use ref$.

ref$;

Observeable that emits a Highmaps.Chart

Using Highcharts modules

To use Highcharts modules you have to import them and provide them in a factory (required for aot). You can find the list of available modules in the highcharts folder ls -la node_modules/highcharts/modules.

Hint: Highcharts-more is a exception, you find this module in the root folder. Don't forget to use the modules with the .src suffix, minimized highcharts modules are not importable.

Example

// app.module.ts
import { ChartModule, HIGHCHARTS_MODULES } from 'angular-highcharts';
import * as more from 'highcharts/highcharts-more.src';
import * as exporting from 'highcharts/modules/exporting.src';

@NgModule({
  providers: [
    { provide: HIGHCHARTS_MODULES, useFactory: () => [ more, exporting ] } // add as factory to your providers
  ]
})
export class AppModule { }

Highstock & Highmaps support

Highstock

For Highstock support load the following module

// app.module.ts
import * as highstock from 'highcharts/modules/stock.src';

@NgModule({
  providers: [
    { provide: HIGHCHARTS_MODULES, useFactory: () => [ highstock ] }
...
// chart.component.ts
import { StockChart } from 'angular-highcharts';

@Component({
  template: `
    <div [chart]="stockChart"></div>
  `
})
export class ChartComponent {
  stockChart = new StockChart({ options });
}

Example Demo

Highmaps

For Highmaps support load the following module

// app.module.ts
import * as highmaps from 'highcharts/modules/map.src';

@NgModule({
  providers: [
    { provide: HIGHCHARTS_MODULES, useFactory: () => [ highmaps ] }
...
// chart.component.ts
import { MapChart } from 'angular-highcharts';

@Component({
  template: `
    <div [chart]="mapChart"></div>
  `
})
export class ChartComponent {
  mapChart = new MapChart({ options });
}

Offical Highcharts NPM Docs: http://www.highcharts.com/docs/getting-started/install-from-npm

Troubleshooting

If you expiring typing errors while you build/serve your angular app the following could be helpful:

// override options type with <any>
chart = new Chart({ options } as any);

This is very useful when using gauge chart type.

Demo

License

MIT © Felix Itzenplitz

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].