c#-散点图是否永久加载15万行?
作者:互联网
我有15万条X和Y列的记录,我正在尝试为FinanicalFormula绘制图表.永久创建图表需要花费时间.它也不会引发错误.
Chart1.DataSource = dtChart
' Data bind to the selected data source
Chart1.DataBind()
Chart1.ChartAreas(0).RecalculateAxesScale()
Chart1.DataManipulator.FinancialFormula(FinancialFormula.Forecasting,
"Linear,,false,false",
Chart1.Series("Series1"),
Chart1.Series("Linear"))
Chart1.DataManipulator.FinancialFormula(FinancialFormula.Forecasting,
"Exponential,,false,false",
Chart1.Series("Series2"),
Chart1.Series("Exponential"))
Chart1.DataManipulator.FinancialFormula(FinancialFormula.Forecasting,
"IsLogarithmic,,false,false",
Chart1.Series("Series3"),
Chart1.Series("Logarithmic"))
Chart1.DataManipulator.FinancialFormula(FinancialFormula.Forecasting,
"Power,,false,false",
Chart1.Series("Series4"),
Chart1.Series("Power"))
Chart1.ChartAreas(0).AxisX.Minimum = 0
'Chart1.ChartAreas(0).AxisX.IntervalOffset = 0.1
Chart1.ChartAreas(0).AxisY.Minimum = 0
'Chart1.ChartAreas(0).AxisY.IntervalOffset = 0.5
控制从调试中的所有这些行中出来.在该页面之后,将数据加载到图形上.我该如何解决?
解决方法:
最简单的方法是,如果您能找到一种方法通过预处理来减少数据中的点数(即,将彼此接近的几个数据点合并为一个数据点)-有趣的是,Dundas在其文章中有相关文章支持页面:
> Improving performance in Dundas
Chart with large data sets
> Grouping Data
标签:charts,mschart,dundas,asp-net,c 来源: https://codeday.me/bug/20191102/1994821.html