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

update chart data | easy way to access object reference #91

Open
pkoretic opened this issue Feb 27, 2018 · 0 comments
Open

update chart data | easy way to access object reference #91

pkoretic opened this issue Feb 27, 2018 · 0 comments

Comments

@pkoretic
Copy link

Hi.

I have taken a look at #10 #42 #19.
However, just using this code

<div [ng2-highcharts]="chartData"></div>

and replacing the whole charData object properties triggers complete rerender as expected.

Accessing the reference is not available by default so there is no easy way to actually just update the data. The setInterval example you mentioned also replaces the whole object.
Could an init event be added (similar as for example angular-highcharts) and #10 workaround, so that this would be as easy as:

<div [ng2-highcharts]="chartData" (init)="onInit($event)"></div>

without manually having to write custom code to trigger this init?

Thanks

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

1 participant