.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

MS Chart series Xaxis not lining up

Posted By:      Posted Date: September 19, 2010    Points: 0   Category :ASP.Net


I have 2 series in the same chartarea.  Both contain values by year (x axis).  The problem is if one series does not have data for a given year, the chart will display the first value in a series on the first tick mark whether it matches the xaxis label or not.


Dim c As Chart
Dim serVal As New Series
Dim serAvg As New Series
'series1 Data
serVal.Points.AddXY("2009", 400)
'series2 data
serAvg.Points.AddXY("2008", 500)
serAvg.Points.AddXY("2009", 600)
'Add series to chart

Notice the 2009 value for series1 appears in the first column and the Xaxis now has 2 2009 tick marks.  How do I get the values to appear on the correct X axis marks?

Thanks a bunch,

View Complete Post

More Related Resource Links

Missing Points in Chart Series

Okay so I have 3 series that are created from Cross Table Data Bind. Unfortunately some of the points are missing. Is there an algorithm I can use to cycle through the datapoints for each series and insert empty points to the correct spots so that my data is displayed correctly?

reporting services xy scatter chart with three data series

Hi, I have a report that includes an XY scatter chart with three data series.  Two of the data series are + and - tollerance bands and the thrid data series is the test points.  The data displays in the graph but I only seem to be able to get all three series to display as a line or all three to display as data points.  I need the tolerance bands to be a line and the test point to be displayed as data points without a line joining them up. Please can you provide a solution.   Thanks

Regarding WPF Line Series Chart how to set this