【发布时间】:2016-10-25 19:50:12
【问题描述】:
我很抱歉我的英语不好,但我现在需要你的帮助。 所以...我正在处理 wpf 项目,我需要根据值(点)的数量绘制系列图表。例如:
series1.Points.Add(new DataPoint(OxyPlot.Axes.DateTimeAxis.ToDouble(new DateTime(2016, 3, 2, 0, 0, 0)), 12));
series1.Points.Add(new DataPoint(OxyPlot.Axes.DateTimeAxis.ToDouble(new DateTime(2016, 3, 5, 0, 0, 0)), 12.5));
series1.Points.Add(new DataPoint(OxyPlot.Axes.DateTimeAxis.ToDouble(new DateTime(2016, 3, 8, 0, 0, 0)), 12.8));
series1.Points.Add(new DataPoint(OxyPlot.Axes.DateTimeAxis.ToDouble(new DateTime(2016, 3, 10, 0, 0, 0)), 12.4));
series1.Points.Add(new DataPoint(OxyPlot.Axes.DateTimeAxis.ToDouble(new DateTime(2016, 3, 20, 0, 0, 0)), 12.9));
正如我们在底部屏幕上看到的,OxyPlot 在 X 轴的直线上绘制标签。我需要在线显示 Y 轴的值。 我该怎么办?谢谢。
【问题讨论】: