【问题标题】:How do i show the values of y axis on my Oxy plot chart(series)如何在我的 Oxy 绘图图表(系列)上显示 y 轴的值
【发布时间】: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 轴的值。 我该怎么办?谢谢。

What I Need to make

【问题讨论】:

标签: wpf label axis oxyplot


【解决方案1】:

我建议您使用highcharts。尽管wpf 并未正式支持它,但您可以在link 上找到您的出路。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多