How to set values in x axis MSChart using C#
问题 I have these XY values: Series S1 = new Series() S1.Points.AddXY(9, 25); S1.Points.AddXY(10, 35); S1.Points.AddXY(11, 15); chart1.Series.Add(S1); but I need to show the X values in the graph like this: X="9-10" X="10-11" X="11-12" How can I achieve that? So far this is what I've found: and here is the code: private void Form1_Shown(object sender, EventArgs e) { chart1.ChartAreas[0].AxisX.Minimum = 7; chart1.ChartAreas[0].AxisX.Maximum = 15; Series S1 = new Series(); S1.Points.AddXY(9, 25); S1