VISIBLOX,WPF:让图表点水平滚动?
我正在使用 Visiblox WPF API,但无法让折线图中的图表点水平滚动。这些点不是滚动,而是被挤压在一起,这并不是什么特别的问题,只是我希望图表上有数百个数据点。我浏览了 Visiblox 网站上提供的示例,但找不到我想要的内容。我附上了一个示例屏幕截图。
有什么想法吗?
感谢您的帮助, Sparky
I'm using the Visiblox WPF API and am having trouble getting the chart points in my line chart to scroll horizontally. Instead of scrolling, the points are get squashed together, in which, this isn't particularly a problem, except that I expect to have 100s of data points on the chart. I have looked throughout the examples available on the Visiblox website, but couldn't find what I was looking for. Ive attached an example screenshot.
Any ideas?
Thanks for your help,
Sparky
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
默认情况下,Visiblox 图表将重新计算范围以包含系列中的所有数据,因此有两种可能的方法:1) 添加最后一个点时,删除第一个点,这将有效地将可见窗口移动一个点或2)设置一个明确的轴范围,并在您想要移动可见窗口时更新它。
请查看 Visiblox 博客,了解有关范围如何工作的更多详细信息:http://www.visiblox.com visiblox.com/blog/2011/03/visiblox-charts-ranges-demystified
By default Visiblox Charts will re-calculate the range to include all the data in the series, so there are two possible approaches: 1) when you add the last point, remove the first one which will effectively move the visible window one point over or 2) set an explicit axis range and update that when you want to move the visible window.
Check out the Visiblox blog for more details on how ranges work at: http://www.visiblox.com/blog/2011/03/visiblox-charts-ranges-demystified
我最近刚刚经历了这样的事情。每次我向购物车添加一个点时,我都会运行一小段代码来检查自 0 以来经过的时间量(我的 x 轴尺寸)。我还设置了一系列我一直想要的数据查看。我一直想在图表上显示 120 秒的数据。所以我有这样的事情:
我面前没有 VS,我知道轴最小/最大的语法是错误的,但你明白了。
I just had something like this recently. Everytime I'd add a point to the cart I'd run a little section of code that would check the amount of time (my x-axis dimension) that had passed since 0. I also set up a range of data I always wanted to see. I always wanted to show 120 seconds of data on the graph. So I had something like this:
I don't have VS in front of me and I know that syntax for the axis min/max is wrong but you get the idea.
默认情况下,Visiblox 图表将重新计算范围以包含系列中的所有数据,因此有两种可能的方法:
1)当您添加最后一个点时,删除第一个点,这将有效地将可见窗口移动一个点或
2)设置一个明确的轴范围,并在您想要移动可见窗口时更新它。
请查看 Visiblox 博客,了解有关范围如何工作的更多详细信息:http ://www.visiblox.com/blog/2011/03/visiblox-charts-ranges-demystified
By default Visiblox Charts will re-calculate the range to include all the data in the series, so there are two possible approaches:
1) when you add the last point, remove the first one which will effectively move the visible window one point over or
2) set an explicit axis range and update that when you want to move the visible window.
Check out the Visiblox blog for more details on how ranges work at: http://www.visiblox.com/blog/2011/03/visiblox-charts-ranges-demystified