Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While trying to integrate highstocks getting a error in ionic v2 #90

Open
kalandher opened this issue Feb 22, 2018 · 3 comments
Open

While trying to integrate highstocks getting a error in ionic v2 #90

kalandher opened this issue Feb 22, 2018 · 3 comments

Comments

@kalandher
Copy link

kalandher commented Feb 22, 2018

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.

@kalandher kalandher changed the title While tryiyng to integrate highstocks getting error While tryiyng to integrate highstocks getting a error Feb 22, 2018
@kalandher kalandher changed the title While tryiyng to integrate highstocks getting a error While tryiyng to integrate highstocks getting a error in ionic v2 Feb 22, 2018
@Bigous
Copy link
Owner

Bigous commented Feb 22, 2018

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.

@kalandher
Copy link
Author

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?

@kalandher kalandher changed the title While tryiyng to integrate highstocks getting a error in ionic v2 While trying to integrate highstocks getting a error in ionic v2 Feb 23, 2018
@kalandher
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants