I have a line chart with a numeric data series (1,5) (2,1.5)(3,1.5)(4,1.5) as the data source.
The chart is rendered fine but I want to see 0 in x axis and y axis. I added a numeric datapoint(0,"0")
so it shows up on the chart. But I do not want this datapoint to be included in the line. Is there anyway to
have 0,0 or zero aligned axes but chart plots only for the data values. Any help is appreciated.
Not necessarily. This won't work if you have a composite chart, but if it's a regular line chart, it should work regardless of the datasource. However, I'm not sure which chart type you're using, because a LineChart cannot be bound to a series that has 2 numeric values as both X and Y. Only a ScatterChart can do that. It might help if you posted a more complete code snippet showing the chart type and the series type. If you're using a composite chart, you can either set a range on your axis to include 0, or you can create an additional series that matches the number of points in the other series with all empty values.
No, that doesnt work. I am assuming it will work only with datatable/dataset as data source?
Try setting chart.Data.ZeroAligned = true