Welcome Guest Search | Active Topics |

Default minimum/maximum axis value
Junya
#1 Posted : Monday, July 29, 2013 12:32:20 AM(UTC)
Rank: Member

Groups: jQueryChart, Registered
Joined: 6/3/2013(UTC)
Posts: 13

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Hello

Can I get default minimum/maximum value of the range of each axis?
I am planning GUI which sets up the range of each axis, and I would like to acquire
and display the maximum/minimum value of each axis of an initial state.

Thanks
Dragan
#2 Posted : Monday, July 29, 2013 1:06:36 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 use this code:

Code:
var chart = jQuery('#jqChart2').jqChart('chart');
var axes = chart.axes.items;

for (var i = 0; i < axes.length; i++) {

    var axis = axes[i];
    var minimum = axis.actualMinimum;
    var maximum = axis.actualMaximum;
}
Best Regards,
Dragan Matek
jqChart Inc.
Junya
#3 Posted : Tuesday, July 30, 2013 6:34:40 PM(UTC)
Rank: Member

Groups: jQueryChart, Registered
Joined: 6/3/2013(UTC)
Posts: 13

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Thank you very much.
I could get what I want.
Users browsing this topic
Guest (4)
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.082 seconds.