禁用 Visiblox 图表的自动缩放
我有一个动态图表,您可以通过拖动线上的点来实时更改图表,但由于 Visiblox 具有某种自动缩放/缩放功能,因此它非常不可用。
我在两个轴上尝试过 AutoScaleToVisibleData = false ,但它没有做任何事情...我有一个 ZoomBehaviour 并且仍然希望能够缩放,但我不希望它是自动的
I have a dynamic chart where you cna change the chart in real time by dragging dots on the line, but since Visiblox have some kind of auto scale/zoom its quite unusable.
I've tried AutoScaleToVisibleData = false on the two axis, but it does not do anything... I have a ZoomBehaviour and still want to be able to zoom, but I do not want it to be auto
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AutoScaleToVisibleData 确定一个轴上的比例是否应依赖于另一个轴上的比例(例如,仅显示包含 x 轴上当前可见内容的 y 轴比例)。
要固定数据的范围(并禁用自动调整范围),您需要为轴设置明确的范围。请参阅http://www.visiblox.com/blog/2011/ 03/visiblox-charts-ranges-demystified 了解更多信息。
另外,您可能想快速浏览一下 http ://www.visiblox.com/blog/2011/09/creating-a-custom-behaviour-part-1 因为这听起来有点像你想要的?
AutoScaleToVisibleData determines whether the scale on one axis should be dependent on the scale of another (e.g. only show a scale for the y-axis that encompases what is currently visible on the x-axis).
To fix the range (and disable auto-ranging) of the data you need to set an explicit range to the axis. See http://www.visiblox.com/blog/2011/03/visiblox-charts-ranges-demystified for more info.
Also you may want to have a quick look at http://www.visiblox.com/blog/2011/09/creating-a-custom-behaviour-part-1 since that sounds a bit like what you want?