Hi Nic,
Please update your ChartJS code with the latest source at /Extensions. It includes your enhancements, some fixes and the embedded js resources to be “internet-free”.
Hi Luca,
I actually found an answer in the UpdateData() method of the widget. This will update the data without animation. However in the current version this does not also update labels.
I’ve attached an updated version of the chartjs extension. My changes are:
Hope that is helpful
Nic
Hi all,
Animation value doesn’t seem to have any effect for me when setting in UpdateData(x).
It always seems to be 300mS.
Saying that, perhaps I’m doing something wrong.
I have two arrays, one for data and the other for x-axis time which I’m adding a new datapoint to every second.
I then update the chart with UpdateData(x).
Visually this looks awful because the chart is cleared and then loaded with the latest dataset, every second.
What I’m trying to achieve is a smoothiechart-like appearance (i.e. a scrolling stripchart) but using chartjs.
I need to use chartjs because I need to be able to pause the chart and scroll back and forth through historic data.
Any tips?
Cheers
Hi Nic,
There is a global property for the animation duration. Look in startup.js “Chart.defaults.global.animation.duration = 0;”. Maybe you can add a property to the ChartJS class as you did for the JustGage extension. If you do, make sure to download the latest source from the extensions page first. I will add this to the enhancements.
The problem is that this is a global option applying to all charts. I don’t know if it can be set on a single chart.
Best,
Luca
Please login first to submit.