I have a Chart with two series, the X axis use dateManual as annotation format. then I pass in six dates as X value.which date is the last day of each month. But the graph's X axis shows Jul Aug Oct Nov Dec. Sept is missing in between. how does that happen? how do I have "Sept" back on my graph?
Code Sample:
thisChart.ChartGroups(0).ChartData.SeriesList(0).PointData.Length = 6
thisChart.ChartGroups(0).ChartData.SeriesList(1).PointData.Length = 6
thisChart.ChartGroups(0).ChartData.SeriesList(0).X(i) = dat(i)
thisChart.ChartGroups(0).ChartData.SeriesList(0).Y(i) = i
thisChart.ChartGroups(0).ChartData.SeriesList(1).X(i) = dat(i)
thisChart.ChartGroups(0).ChartData.SeriesList(1).Y(i) = i
Thanks!
ds.X.CopyDataIn(dat)
ds.Y(i) = i
<NZbeny99> wrote in message news:215210@10.0.1.98... I have a Chart with two series, the X axis use dateManual as annotation format. then I pass in six dates as X value.which date is the last day of each month. But the graph's X axis shows Jul Aug Oct Nov Dec. Sept is missing in between. how does that happen? how do I have "Sept" back on my graph? Code Sample:Dim dat() As Date = New Date() {New Date(2005, 7, 31), New Date(2005, 8, 31), New Date(2005, 9, 30), New Date(2005, 10, 31), New Date(2005, 11, 30), New Date(2005, 12, 31)} thisChart.ChartGroups(0).ChartData.SeriesList(0).PointData.Length = 6 thisChart.ChartGroups(0).ChartData.SeriesList(1).PointData.Length = 6For i As Integer = 0 To 5 thisChart.ChartGroups(0).ChartData.SeriesList(0).X(i) = dat(i) thisChart.ChartGroups(0).ChartData.SeriesList(0).Y(i) = i thisChart.ChartGroups(0).ChartData.SeriesList(1).X(i) = dat(i) thisChart.ChartGroups(0).ChartData.SeriesList(1).Y(i) = i Next Thanks! http://helpcentral.componentone.com/cs/forums/p/78477/215210.aspx#215210
I have tried your code snippet, the Date axis on the graph is now correct. but I am creting a column chart. the column is not drawn on the right date axis. the first column should be on august because i passed in "31th of july" for x1, not in between of august and september. any idea? Thanks!
Hello
I have the same problem. If anybody replies you then that will be helpful for me too.
Thanks.