joewalnes / smoothie

Smoothie Charts: smooooooth JavaScript charts for realtime streaming data
http://smoothiecharts.org
Other
2.24k stars 229 forks source link

change smoothie function properties dynamically #142

Open mkeyno opened 2 years ago

mkeyno commented 2 years ago

hi I make an instance of the chart for my real data input, however my data variation is changed and I was wondering if I can change the smoothie function properties such as maxValue, minValue: dynamically

WofWca commented 2 years ago

Would smoothie.options.maxValue = myValue be sufficient?

mkeyno commented 2 years ago

thanks, @WofWca , now I can change my scope of data, but I think automatic dynamic scope changing would be a good option for such a drawing library

WofWca commented 2 years ago

It does change automatically by default, if you omit the maxValue and minValue options, see the default builder example: http://smoothiecharts.org/builder/