We have a simple ColumnChart with positive and negative values.
There is no line across the chart though at the 0 line. How do we enable a zero line across?
See attached image
We have a simple ColumnChart with positive and negative values.
There is no line across the chart though at the 0 line. How do we enable a zero line across?
See attached image
Assuming that you are using a LinearAxis for Y axis.
All you need to do is add to your LinearAxis.
plotModel.Axes.Add(new LinearAxis()
{
Title = "Percentage",
Position = AxisPosition.Left,
// Magic Happens here we add the extra grid line on our Y Axis at zero
ExtraGridlines = new Double[] { 0 }
});
Take a look at this works for me on Android haven't tested it on IOS: