Welcome Guest Search | Active Topics |

Update all jqChart instances
GameBench
#1 Posted : Thursday, September 11, 2014 2:17:25 PM(UTC)
Rank: Newbie

Groups: jQueryDV, Registered
Joined: 8/7/2014(UTC)
Posts: 9

Thanks: 3 times
Was thanked: 0 time(s) in 0 post(s)
Heya,

Wondering if there is any way to update all the instances of jqChart with a single call? I know you can do $('#ID').jqChart('update');

I'm also wondering if there is any way to run a container size update without doing a full Update on the charts.

Cheers,
Jake
Dragan
#2 Posted : Tuesday, September 16, 2014 11:12:52 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)
Currently you can't update multiple charts at once. You need to call $('#ID').jqChart('update') for each of them.

If you change the size of the chart, it needs to redraw. The HTML5 canvas can't be just scaled.
Best Regards,
Dragan Matek
jqChart Inc.
GameBench
#3 Posted : Friday, October 3, 2014 5:24:47 AM(UTC)
Rank: Newbie

Groups: jQueryDV, Registered
Joined: 8/7/2014(UTC)
Posts: 9

Thanks: 3 times
Was thanked: 0 time(s) in 0 post(s)
Just wanted to let you know I solved the issue with the following code:

Code:

function updateAll() {
     $('.ui-jqchart').each(function(i,v) {
          var chart = $(v).attr('id');
          $('#'+chart).jqChart('update');
     });
}


Cheers
J
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.042 seconds.