谁能告诉我如何更改 Y 轴字符串格式?
我有要添加百分号的 Y 轴百分比。
我正在使用 OxyPlot 在 wpf 中生成图表。
这是我的尝试,但它不起作用:
Func<double, string> formatFunc = (x) => string.Format("{000.00}%", x);
formatFunc = new Func<double,string>("{0}");
// Add the plot to the window
line.YAxis.LabelFormatter = formatFunc;
这会产生空引用错误。
谢谢!