I need to show a value on each month. It should look like this
!(https://i.sstatic.net/whgl2fY8.png)
I tried the next code
for (int i = 0; i < months.Length; i++)
{
DataPoint dp = new DataPoint();
dp.AxisLabel = months[i].ToString();
dp.YValues = new double[] { values[i] };
chartProfit.Series[0].Points.Add(dp);
}
And on the screen I got this
(https://i.sstatic.net/TDdyvCJj.png)
How to make my chart show all x values?
And adding chartProfit.ChartAreas.FirstOrDefault().AxisX.Interval = 1;
doesn’t help