Closed meiqi2014 closed 8 years ago
Hi @meiqi2014 , Waterfall is not on the default highcharts file (highcharts.js) you need to include highcharts-more.js do enable waterfall.
It's the same as the map example. Just add the highcharts-more.js to your deploy, or index file and it should work.
[]'s
Thanks Bigous for your quick response. Sorry for the newbie question, but which file(s) should I modify to include highcharts-more.js? I am using project https://github.com/Bigous/angular2-seed-ng2-highcharts for my testing.
I think I figured out how to add highcharts-more.js. In file https://github.com/Bigous/angular2-seed-ng2-highcharts/blob/master/tools/config/project.config.ts , I added following line
{ src: 'highcharts/highcharts-more', inject: 'libs' },
, and it worked.
Thanks Bigous!
I am able to make
line
andcolumn
chart types work successfully. However when I switch towaterfall
, I got an error like the following:browser_adapter.ts:78 ORIGINAL EXCEPTION: Error: Highcharts error #17: www.highcharts.com/errors/17
Is waterfall not supported in ng2-charts? Thanks.