动态图过滤
我正在 WPF 中制作一个图表,每个部分都有数千个点要绘制。 渲染此图的性能非常糟糕。
有没有人有过使用过滤器的经验,该过滤器可以用更少的点来表示图表 - 类似于股票图表在缩小时绘制自身的方式。
谢谢。
I am working on a graph in WPF, in each section there are thousands of points to draw. The performance for rendering this graph is horrible.
Does anyone have any experience with a filter that will represent the graph with much fewer points - similar to the way a stock graph draws itself when its zoomed out.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您谈论图表时,我假设您指的是图表中的图表,而不是大量的节点和边(因此是股票示例)。
因此,假设情况确实如此,这里有几个涵盖简化折线算法的网页:
http://www.kevlindev.com/tutorials/geometry/simplify_polyline/page2.htm
http://softsurfer.com/Archive/algorithm_0205/algorithm_0205.htm
您可以生成各种比例的图形线的简化折线版本(按需)。
When you talk about a graph, I'm assuming you mean as in a chart rather than lots of nodes and edges (hence the stock example).
So, assuming that's the case, here are a couple of webpages covering algorithms for simplifying polylines:
http://www.kevlindev.com/tutorials/geometry/simplify_polyline/page2.htm
http://softsurfer.com/Archive/algorithm_0205/algorithm_0205.htm
You could generate simplified polyline versions of the graph lines for various scales (on demand).