Open beabri opened 7 years ago
I also had same issue in my ionic 2 app. I used
ChartModule.forRoot(require('highcharts'))
instead of ChartModule.forRoot('highcharts')
and it worked!
I have the same problem and I use forRoot(require('highcharts'))
I tried setting the type in the options object but without success
this.options = {
chart: {
type: 'spline'
},
title : {
text: 'testing chart'
},
series: [{
data: [29.9, 71.5, 106.4, 129.2]
}]
};
When I try to load a simple highchart in my Angular 2 app, it always gives me the following error:
Here my app.module.ts:
My sistemjs.config.js:
And, inside my component: