admin管理员组

文章数量:1405727

I would like to know how to get x-axis start value in JS library Flot. I know x-axis value in the start (obviously, because I fill it with my own data), but if you set:

pan: {
     interactive: true
}

Than the user is able to pan through graph (example here) and if the user pans through graph, the x-values change. I looked inside jquery.flot.js to find where this values are puted but with no luck.

I would like to know how to get x-axis start value in JS library Flot. I know x-axis value in the start (obviously, because I fill it with my own data), but if you set:

pan: {
     interactive: true
}

Than the user is able to pan through graph (example here) and if the user pans through graph, the x-values change. I looked inside jquery.flot.js to find where this values are puted but with no luck.

Share asked Dec 8, 2011 at 16:22 Jernej JerinJernej Jerin 3,3999 gold badges39 silver badges53 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

I got it. The solution was in front of me the whole time (example):

 var axes = plot.getAxes();
 var min = axes.xaxis.min;

本文标签: javascriptHow to get xaxis start value in FlotStack Overflow