散点图永远加载 15 万行?
我有 150K 条 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
控制来自调试中的所有行。在该页面加载图表上的数据之后。我该如何解决这个问题?
I have 150K records of X and Y columns and I am trying to draw a chart for FinanicalFormula. It is taking time to create chart for ever. It is not throwing error also.
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
control is coming out from these all line in debug. after that page taking to load data on the graph. How can I resolve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最简单的方法是,如果您可以找到一种方法,通过预处理来减少数据中的点数(即将多个彼此接近的数据点合并为一个数据点) - 有趣的是,Dundas 有相关文章介绍其支持页面:
包含大数据集的图表
The easiest way would be if you can find a way to reduce the point count in your data by preprocessing it (i.e. combining several data points that are in proximity to each other to a single data point) - interestingly enough Dundas has relevant articles on their support pages:
Chart with large data sets