Chart - How to set column spacing

Rkdobh

New member
Joined
Oct 8, 2019
Messages
3
Programming Experience
Beginner
Hi there.

I have this code to my chart, using C# WinForms:

chart1:
chart1.Series[0].IsVisibleInLegend = false;
chart1.Series[0].ChartType = SeriesChartType.Line;
chart1.Series[0].Points.DataBindXY(Enumerable.Range(0, 5000).ToArray(), array1);

The result is below:

im1.jpeg


I'd like to set the X legend to 1000 each, together with the vertical bar information, like below. Also, it'd be good if the whole data frame fits the entire size of chart, instead of centering it.
What I wish to do:

im1 - Copia.jpeg


Can anyone help me? Thank you!
 

Latest posts

Back
Top Bottom