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 badges1 Answer
Reset to default 7I 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
版权声明:本文标题:javascript - How to get x-axis start value in Flot? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744935328a2633147.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论