Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

i am creating a chart in c# and it's showing me two X axis label one with even interval and another with odd interval


here is my code
C#
chartxy.Series.Clear();
chartxy.Titles.Clear();

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

chartxy.ChartAreas[0].AxisY.Interval = 1;

chartxy.Titles.Add(unitStuff);

Series barSeries = new Series();
Series barSeries1 = new Series();

barSeries.Points.DataBindXY(xData, yData1);
barSeries1.Points.DataBindY(yData2);

barSeries.ChartType = SeriesChartType.Column;
barSeries1.ChartType = SeriesChartType.Column;

barSeries.Name = System.Configuration.ConfigurationManager.AppSettings.Get("Sheet1");
barSeries1.Name = System.Configuration.ConfigurationManager.AppSettings.Get("Sheet2");

chartxy.Series.Add(barSeries);
chartxy.Series.Add(barSeries1);
Posted
Updated 23-Aug-14 7:19am
v3
Comments
Gihan Liyanage 3-Sep-14 1:23am    
Do you have any question ? or You have any problems ??
Farhan Qureshi 3-Sep-14 10:40am    
Thanks alot i have solved my problem long ago

thanks once again

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