How to dynamically change chart options? (just as in Smoothie Charts builder)

756 views
Skip to first unread message

Zichun Xu

unread,
Apr 27, 2014, 3:59:05 PM4/27/14
to smoothi...@googlegroups.com
Help!  How can I change the scrolling speed when the data is streaming?  


Scott Beeson

unread,
Oct 6, 2015, 4:46:42 PM10/6/15
to Smoothie Charts
I'd like to know this too.  I want to change the color of the line based on the value.

Drew Noakes

unread,
Oct 13, 2015, 4:50:02 PM10/13/15
to Smoothie Charts
Take a look at the builder: http://smoothiecharts.org/builder/

It shows you what code you need for different configurations of the chart.

--
You received this message because you are subscribed to the Google Groups "Smoothie Charts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothie-char...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Roberval Sena 山本

unread,
Jun 23, 2016, 9:02:02 PM6/23/16
to Smoothie Charts
Hello !

I realy enjoing this project, and I have some questions..  
I realy apreciate If you can help me !

My problem is:
I need to chance values .. "on the fly,," like the scroling velocity ,  but as can see in this topic, I have to reload the page...

soooo.. Is it possible to make it dinamicaly?

any tips ? 

[]s Sena

Drew Noakes

unread,
Jun 24, 2016, 4:35:46 AM6/24/16
to smoothie-charts
Yes it's possible, but not that straightforward. Each time you wish to change a value already submitted to the time series, you'd need to find it in the series again. There are no methods for this, but you can work with the TimeSeries.data property directly yourself.

It's a two dimensional array. The first index is the position in the array (which is constantly updated as old values are removed). The second dimension is [0] for the timestamp, and [1] for the value. So, you can find the timestamp you want to modify, then update the data value.

--

セナ山本ロベルバル

unread,
Jun 26, 2016, 8:22:45 PM6/26/16
to smoothi...@googlegroups.com
Thans!

It was  Very  Help full !

[]s Sena


Reply all
Reply to author
Forward
0 new messages