AddXY points in a chart, Y point is shown but is not labeled

3.4k views Asked by At

I want to show a graph with exactly the assigned values for Y axis, however after running the program, it shows some sequences like 20,40,60, etc.

Even if I've a y value of 30 for instance, it draws it but with no label on Y.

Here is the code

this.chart1.ChartAreas[0].AxisY.Title = "Time (MS)";
this.chart1.ChartAreas[0].AxisX.Title = "Algorithm Used";
this.chart1.Series["SURF"].Points.AddXY(1, SURFT/1000);
this.chart1.Series["SURF Sensor"].Points.AddXY(1, SURFSensorT / 1000);
this.chart1.Series["SIFT"].Points.AddXY(2, SIFT/1000);
this.chart1.Series["SIFT Sensor"].Points.AddXY(2, SIFTSensorT / 1000);
this.chart1.Series["BRISK"].Points.AddXY(3, BRISKT/1000);
this.chart1.Series["BRISK Sensor"].Points.AddXY(3, BRISKSensorT/1000);

enter image description here

0

There are 0 answers