【问题标题】:label x and y axis chart c# [duplicate]标签x和y轴图表c#[重复]
【发布时间】:2020-06-03 13:04:05
【问题描述】:

我无法在图表的 x 和 y 轴上添加标签。

我找到了这个链接的解决方案: Add axis name into chart c#

我已经添加了using System.Windows.DataVisualization.Charting; 但每当我输入“.AxisX”时,它建议的唯一内容是“AxisScrollBarClicked”、“AxisViewChanged”、“AxisViewChanging”和“AlignDataPointsByAxisLabel”。

Screenshot

谁能帮我解决这个问题?谢谢!

【问题讨论】:

  • 再看一遍!然后你会发现坐标轴属于图表的 Chartarea!

标签: c# charts axis


【解决方案1】:
chart1.ChartAreas[0].AxisX.Title = "xxx";
chart1.ChartAreas[0].AxisY.Title = "xxx";

这是@TaW 从链接Add axis name into chart c# 建议的

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-05-01
    • 1970-01-01
    • 2014-07-30
    • 2020-11-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-22
    相关资源
    最近更新 更多