VISIBLOX,WPF:让图表点水平滚动?

发布于 2024-10-29 18:55:35 字数 240 浏览 6 评论 0原文

我正在使用 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

Example

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

纵性 2024-11-05 18:55:35

默认情况下,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

变身佩奇 2024-11-05 18:55:35

我最近刚刚经历了这样的事情。每次我向购物车添加一个点时,我都会运行一小段代码来检查自 0 以来经过的时间量(我的 x 轴尺寸)。我还设置了一系列我一直想要的数据查看。我一直想在图表上显示 120 秒的数据。所以我有这样的事情:

private void adjustXasis(int timeCount)
{
    if(timeCount>desiredRange)
    {
        chart.axis.Xaxis.minimum=timeCount-desiredRange;
        chart.axis.Xaxis.maximum=timeCount;
    }
    else //two minutes not reached yet
    {
        chart.axis.Xaxis.minimum=0;
        chart.axis.Xaxis.maximum=desiredRange;
    }           
}

我面前没有 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:

private void adjustXasis(int timeCount)
{
    if(timeCount>desiredRange)
    {
        chart.axis.Xaxis.minimum=timeCount-desiredRange;
        chart.axis.Xaxis.maximum=timeCount;
    }
    else //two minutes not reached yet
    {
        chart.axis.Xaxis.minimum=0;
        chart.axis.Xaxis.maximum=desiredRange;
    }           
}

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.

标点 2024-11-05 18:55:35

默认情况下,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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文