[
Log In
]
HOME
SAMPLES
DOCS
DOWNLOAD
LICENSING/PRICING
SUPPORT
FORUM
WHAT'S NEW
PRODUCT ROADMAP
ABOUT US
Home
\
Support
\ Forum
Welcome Guest
Search
|
Active Topics
|
ERROR
DataViz Charts and Gauges
»
DataViz Charts Forums
»
DataViz Charts and Gauges for JavaScript/jQuery
»
Update all jqChart instances
Update all jqChart instances
Options
Previous Topic
Next Topic
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
Back to top
User Profile
View Thanks
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.
Back to top
User Profile
View Thanks
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
Back to top
User Profile
View Thanks
Users browsing this topic
Guest
DataViz Charts and Gauges
»
DataViz Charts Forums
»
DataViz Charts and Gauges for JavaScript/jQuery
»
Update all jqChart instances
Forum Jump
DataViz Charts Forums
- DataViz Charts and Gauges for JavaScript/jQuery
- DataViz Charts and Gauges for ASP.NET MVC
- DataViz Charts for ASP.NET Web Forms
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.
Watch this topic
Email this topic
Print this topic
RSS Feed
Normal
Threaded
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.079 seconds.