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

Reinitialize plugin or live change propperties (threshold) #9

Open
vit134 opened this issue Apr 25, 2017 · 1 comment
Open

Reinitialize plugin or live change propperties (threshold) #9

vit134 opened this issue Apr 25, 2017 · 1 comment

Comments

@vit134
Copy link

vit134 commented Apr 25, 2017

Hi, in my app, i show new chart with different propperties on timeout, and i want any time when chart was created, change the "threshold" prop. how i can do this?
You can see my app in http://widgets.andryushkov.ru/exchange_dynamics/

Thankful in advance for the answer

@adriennn
Copy link

I tried to do this as well, users can change the threshold from a form, but I can't figure out how to pass the new options to the .update() function of chartist-js to update the graph with the new threshold?

chart.update(null, {c.plugins.ctThreshold: threshold})

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