Releases: gevgeny/angular2-highcharts
Releases · gevgeny/angular2-highcharts
v0.5.5
v0.5.4
- Add angular-cli support
- Bump dependencies versions
- Update documentation and live demos
Breaking Changes
- Now main highcharts module (highchart, highstock or highmaps) should be specified manually during app init. It helped to get rid of config changes in webpack environment.
@NgModule({
imports: [
BrowserModule,
- ChartModule
+ ChartModule.forRoot(require('highcharts'))
],
declarations: [App],
bootstrap: [App]
})
- Highcharts Modules adding was simplified and also moved to app init.
- const Highcharts = require('highcharts');
- const Highcharts-3d = require('highcharts/highcharts-3d');
- Highcharts-3d (Highcharts)
@NgModule({
imports: [
BrowserModule,
- ChartModule
+ ChartModule.forRoot(
+ require('highcharts'),
+ require('highcharts/highcharts-3d')
+ )
],
declarations: [App],
bootstrap: [App]
})