Welcome Guest Search | Active Topics |

Update chart without redrawing chart
cashlance
#1 Posted : Tuesday, September 17, 2013 11:19:50 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/23/2013(UTC)
Posts: 4

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I really like how this sample behaves, new series can be added to the chart without the need to redraw all the other series.

http://www.jqchart.com/j...rt/RealTime/ChartSeries

Unfortunately when I try to replicate this functionality in my application the chart always redraws itself when you call the $('#jqChart').jqChart('update'); function.

All the other series that are already on the chart are redrawn as well which is no good. Any one have any ideas why this might be happening?

Thanks,
Alex.
Dragan
#2 Posted : Wednesday, September 18, 2013 6:17:12 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Hi,

Currently jqChart redraws all the series, but the redrawing is really fast.

What is the issue in your sample when all the series are updated?
Best Regards,
Dragan Matek
jqChart Inc.
cashlance
#3 Posted : Thursday, September 19, 2013 5:12:06 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/23/2013(UTC)
Posts: 4

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Actually it's ok, I had animation turned on so the chart was reanimating each time update was called. Disabling animation makes it redraw much faster.
techno2mahi
#4 Posted : Tuesday, May 28, 2024 6:24:45 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/28/2024(UTC)
Posts: 2

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
I have been struggling with this redraw for a month now. We have a requirement of drawing 200k points and every second there is a addition of 5 points as received from a realtime data source. This chart is being drawn and we observe a lag when the page contains multiple of the charts and it spikes the chrome memory footprint and CPU.
We are using jquery-3.6.0 jquery.jqChart-4.1.0 libraries.

A sample code for the same is posted in this forum.
https://stackoverflow.co...g-the-whole-chart-but-d
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.098 seconds.