Click here to Skip to main content
13,290,735 members (67,098 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I use this code:
            chartStatistic.DataSource = _manager.myPointList;
            Series series = new Series("seriesName"); 
            series.XValueMember = "Date";
            series.YValueMembers = "Count";

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

Posted 4-Oct-12 8:17am
Updated 4-Oct-12 8:22am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

This works =)

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171207.1 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100