hiltons Posted April 16, 2013 Report Share Posted April 16, 2013 generally the documentation for the site and plugin are awesome, but when it comes to realtime data it seems a bit broken. here is the example given on the realtime documentation example :: var realTime = chart1.getRealTime(); realTime.setBufferSize(20); realTime.setMode(cfx.RealTimeMode.Loop); realTime.beginAddData(1, cfx.RealTimeAction.Append); data.setItem(0, 0, g_realTimeValue); realTime.endAddData(false, false); what is data in this snippet? is it chart1.getData? can we please have a full example showing some sort of live data, preferably with random numbers over time or something. Quote Link to comment Share on other sites More sharing options...
0 angelr Posted April 17, 2013 Report Share Posted April 17, 2013 Thank you for your feedback. We will update the documentation. In the meantime, here is a working sample showing real-time capabilities: http://jsfiddle.net/softwarefx/esVgj/ Quote Link to comment Share on other sites More sharing options...
0 hiltons Posted April 17, 2013 Author Report Share Posted April 17, 2013 thank you for the response and example. this is perfect. thanks! Quote Link to comment Share on other sites More sharing options...
Question
hiltons
generally the documentation for the site and plugin are awesome, but when it comes to realtime data it seems a bit broken.
here is the example given on the realtime documentation example ::
var realTime = chart1.getRealTime();
realTime.setBufferSize(20);
realTime.setMode(cfx.RealTimeMode.Loop);
realTime.beginAddData(1, cfx.RealTimeAction.Append);
data.setItem(0, 0, g_realTimeValue);
realTime.endAddData(false, false);
what is data in this snippet? is it chart1.getData?
can we please have a full example showing some sort of live data, preferably with random numbers over time or something.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.