Is there any way to use highcharts.js with angular2 ?Is there any option available instead of highcharts?
相关问题
- Angular RxJS mergeMap types
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- How to update placeholder text in ng2-smart-table?
- How to instantiate Http service in main.ts manuall
- Angular: ngc or tsc?
相关文章
- angular脚手架在ie9+下兼容问题
- angular 前端项目 build 报错 "Cannot find module 'le
- Angular Material Stepper causes mat-formfield to v
- After upgrade to Angular 9 cannot find variable in
- is there any difference between import { Observabl
- Suppress “Circular dependency detected” suppress w
- How can you get current positional information abo
- Angular material table not showing data
With usage of official highcharts module only (w/o angular2-highcharts and other and even @types/highcharts)
npm install --save-dev highcharts
this.chartInstance will have all highcharts methods like addSeries, reflow, redraw etc.
As of October 2018:
angular-highcharts is the new kid on the block and has overtaken angular2-highcharts in popularity.
angular-highcharts is an Angular directive based implementation of highcharts and ATTOW requires Angular 7 (which was released very recently)
I have no affiliation to either library.
I know this question is a bit stale, but is one of the first hits for angular2+highcharts queries... It's pretty simple and straight forward to get highcharts working. Here is a plunker example, https://plnkr.co/edit/8ccBrP?p=preview.
Here is the main logic:
PrimeNG charts can be an alternative. http://www.primefaces.org/primeng/