Reputation: 31
We want to draw spline chart with both –Ve and +Ve values using MS chart control library in .Net 4.0 .The x-axis label, the dark line legends are always shown at the bottom of the chart.We want to move x axis line and legends, to the 0th position on Y axis .Basically in the middle of the chart (vertically). Has anybody done that ? Anybody knows properties to be set for achieving this.Any pointers would be of great help.
Upvotes: 3
Views: 1933
Reputation: 60984
Using the following property settings solves the issue:
Chart1.ChartAreas["ChartArea1"].AxisX.Crossing = 0.00;
Chart1.ChartAreas["ChartArea1"].AxisY.Crossing = 0.00;
Upvotes: 1