【问题标题】:C# OxyPlot: How to display point values on chart?C# OxyPlot:如何在图表上显示点值?
【发布时间】:2021-04-12 11:36:36
【问题描述】:

谁能建议如何在图表上显示点的值?类似的东西。图表:

【问题讨论】:

    标签: c# winforms oxyplot


    【解决方案1】:

    在您的系列中使用 LabelFormatString 属性。这使您可以指定要显示的内容以及显示方式。

    仅显示屏幕截图中的 y 值:

      // Show the y value with 1 decimal place.
      series.LabelFormatString = "{1:F1}";
    

      // Or if you wanted to show (x, y).
      series.LabelFormatString = "({0:F1}, {1:F1})";
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-16
      相关资源
      最近更新 更多