chartist-plugin-threshold icon indicating copy to clipboard operation
chartist-plugin-threshold copied to clipboard

Reinitialize plugin or live change propperties (threshold)

Open vit134 opened this issue 7 years ago • 1 comments

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

vit134 avatar Apr 25 '17 10:04 vit134

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})

adriennn avatar Aug 22 '17 09:08 adriennn