如何在Flot中获取x轴起始值?
我想知道如何在JS库Flot中获取x轴起始值。我知道开始时的 x 轴值(显然,因为我用自己的数据填充它),但如果您设置:
pan: {
interactive: true
}
则用户可以平移图表(示例),如果用户平移图表,x 值会发生变化。我查看了 jquery.flot.js 内部以查找计算该值的位置,但没有成功。
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 computed but with no luck.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我得到了它。解决方案一直在我面前(示例):
I got it. The solution was in front of me the whole time (example):