简体   繁体   English

用海量数据绘制图表的最佳方法是什么?

[英]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种方法:

  • draw chart on server side and display on client 在服务器端绘制图表并在客户端上显示
  • fetch chart data from server and render chart on client 从服务器获取图表数据并在客户端上呈现图表

Both ways are "good for me".. But I see some inconvenience: 两种方式都“对我有益”。但是,我看到一些不便之处:

  • in first case if I need to change eg chart period I need call server for new chart picture 在第一种情况下,如果需要更改图表周期,则需要呼叫服务器以获取新的图表图片
  • in second case I need load mass of data from server and store on client.. so in this case I get mobility on client.. 在第二种情况下,我需要从服务器加载大量数据并存储在客户端上..因此在这种情况下,我可以在客户端上获得移动性。

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.

相关问题 存储大量文本数据的最佳方法? - Best way to store large amounts of text data? 将大量RTF数据复制到RichTextBox的最佳/最快方法? - Best/fastest way to copy over large amounts of RTF data to a RichTextBox? 存储大量静态数据的好方法是什么? - What's a good way to store large amounts of static data? 对大量数据进行最佳加密(速度至关重要)? - Best encryption for large amounts of data (speed is essential)? 在Canvas上用离散值绘制图表的最佳方法是什么? - What's the best way to draw chart with discrete values on Canvas? 通过C#网页发送大量电子邮件的最佳方式是什么? - What's the best way to send large amounts of email via C# Web page? 在两个不同的数据库之间比较大量数据的最佳方法是什么? - Whats the best way to compare large amounts of data between two different databases? 处理大数据表的最佳方法是什么? - What is the best way to handle a large table of data? 分析大量数据的有效方法? - Efficient way to analyze large amounts of data? 管理大量数据(高度数据)并替换这个巨大数组的最有效方法是什么? - What's the most efficient way to manage large amounts of data (height data) and replace this huge array?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM