隐藏零XAxis日期值

时间:2013-08-10 17:46:13

标签: date charts hide zero

我有一个System.Windows.Forms.DataVisualization.Charting.Chart三个值并且与相同日期(15.07.15)相关联。现在它看起来像the picture。 有没有办法隐藏“零”“30.12.1899”日期?

2 个答案:

答案 0 :(得分:0)

chart1.ChartAreas[index].AxisX.LabelStyle.Enabled = false;

答案 1 :(得分:0)

.Label Style.Enabled = false;

隐藏所有轴标签。 要隐藏“零”,只需将.AxisX.Minimum设置为类似1e-12;