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

Calling AmSerialCharts methods on a chart? #60

Open
Jaftem opened this issue Oct 20, 2017 · 0 comments
Open

Calling AmSerialCharts methods on a chart? #60

Jaftem opened this issue Oct 20, 2017 · 0 comments

Comments

@Jaftem
Copy link

Jaftem commented Oct 20, 2017

It seems the only way to do this is to access the chart attribute of the element's state:

this.refs.mychart.state.chart

chart however is null when I try to access in componentDidMount and accessible (not null) in componentWillUpdate (called after componentDidMount and only called once on refresh of the current page - ie., if I click a link to my AmCharts page from another page, this method is never called).

Is there a reliable way to access state data so that I can call AmSerialCharts methods on the AmChart?

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