Welcome Guest Search | Active Topics |

ready event for zoomable charts ?
cbolaurent
#1 Posted : Tuesday, February 5, 2013 12:26:53 PM(UTC)
Rank: Newbie

Groups: jQueryDV, Registered
Joined: 2/4/2013(UTC)
Posts: 6

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

Il would like to synchronize another chart with the slider of a zoomable chart.
My idea : when the slider is moved, wait for the chart is completely draw, then use axes[0].visibleMinimum and axes[0].visibleMaximum to draw the second chart accordingly.

So I need a "ready" event, or maybe there's a better way to achieve this ?

TIA
Laurent

Dragan
#2 Posted : Tuesday, February 5, 2013 12:52:39 PM(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)
You can handle the 'axisZoom' event.

Code:
$('#jqChart').bind('axisZoom', function (e, data) {

                var axis = data.axis;

                var minimum = axis.minimum;
                var maximum = axis.maximum;

                var visibleMinimum = axis.visibleMinimum;
                var visibleMaximum = axis.visibleMaximum;
            });

Best Regards,
Dragan Matek
jqChart Inc.
1 user thanked Dragan for this useful post.
cbolaurent on 2/6/2013(UTC)
Users browsing this topic
Guest
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.076 seconds.