ng2-highcharts
ng2-highcharts copied to clipboard
While trying to integrate highstocks getting a error in ionic v2
ERROR TypeError: Highcharts.StockChart is not a constructor.
Highcharts are already working. when integrating highstock im getting these errors. Why definations of highstocks are not in index.d.ts? even if i move them into index.d.ts its not working.
Hi @kalandher , normally it's because you've set the highcharts.js
as a dependency, but when you need to use Highcharts.StockChart, you need to depend on highstock.js
instead of highcharts.js
.
Hi @Bigous my app already has highcharts. now i want to integrate highstocks as well. cant i use both highcharts and highstocks? I have loaded highstock.js
into src/assets/libs/
folder. How can i use both the dependencies?
Hello @Bigous, Thanks Its working. Removing highcharts.js and using highstock.js will impact any of my existing charts which i built in using highcharts.