
Я попробовал следующий код
Код: Выделить всё
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);
}
[img]https:// i.sstatic.net/TDdyvCJj.png[/img]
Как сделать так, чтобы на моей диаграмме отображались все значения x?
И добавлениеchartProfit.ChartAreas. FirstOrDefault().AxisX.Interval = 1; не помогает
Подробнее здесь: https://stackoverflow.com/questions/784 ... he-chart-c
Мобильная версия