Click here to Skip to main content
15,881,702 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello!
I use this code:
C#
chartStatistic.DataSource = _manager.myPointList;

Series series = new Series("seriesName");

series.XValueMember = "Date";
series.YValueMembers = "Count";

chartStatistic.Series.Add(series);

Every Element of myPointList has a date value and a count value.
Problem:
The date values are not below the bars in the chartcontrol.
Chartcontrol shows 14 bars but only 8 Dates. How can i do this?

Regards
Posted
Updated 4-Oct-12 7:22am
v2

1 solution

chartStatistic.ChartAreas[0].AxisX.Interval = 1;


This works =)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900