[英]What is best way to draw chart with large amounts of data?
What is best way to draw chart on silverlight application ? 在Silverlight应用程序上绘制图表的最佳方法是什么?
I see 2 ways: 我看到2种方法:
Both ways are "good for me".. But I see some inconvenience: 两种方式都“对我有益”。但是,我看到一些不便之处:
What is best way to draw charts with large amounts of data ? 绘制包含大量数据的图表的最佳方法是什么? Is there any other way?
还有其他办法吗?
It really depends on your use-case and what the user should do with the data. 这实际上取决于您的用例以及用户应如何处理数据。 Client-side rendering gives you more flexibility with display options, ofcourse.
客户端渲染当然可以为您提供更多显示选项。
But you don't need to move massive amounts of data. 但是您不需要移动大量数据。 I bet the user has much less pixels in his chart than there are data points, so you can run some aggregation functions server side before transferring data to the locally rendered chart.
我敢打赌,用户图表中的像素少于数据点,因此您可以在将数据传输到本地呈现的图表之前运行一些聚合函数服务器端。
If, you have options (DropDown lists, Check boxes, ..etc) which change the chart graph area up on user preferences or filters, Go with the 2nd option. 如果您有一些选项(“下拉列表”,“复选框”,.. etc)可以根据用户偏好或过滤器向上更改图表图形区域,请选择第二个选项。
Use Silverlight <--> WCF <--> DB Server, this is very efficient even with large amounts of data. 使用Silverlight <-> WCF <-> DB Server,即使有大量数据,这也非常有效。
On the other hand, if your chart is static (one-fits-all), prepare it on the server and you can send it to the client as an image for example. 另一方面,如果图表是静态的(全能),则在服务器上进行准备,例如,可以将其作为图像发送给客户端。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.