SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
x-axis starting value are not displayed if the decimal point.
I hope that even if the first point label and last point label is the decimal value displayed.
(x start point : 723.07)
(x last point : 735.07)
Hi there,
There are a few ways to do this. First, you could try our StaticAxis feature (also described here in this FAQ) which displays labels at equal distances across the chart.
Alternatively, if you prefer the built in axis label behaviour, you can override our built-in TickProvider to draw the edge ticks always.
// Declare a TickProvider
public class NumericTickProviderWithEdges : NumericTickProvider
{
public override IList<double> GetMajorTicks(IAxisParams axis)
{
// With the default calculation
var baseTicks = base.GetMajorTicks(axis);
// Add first label at Axis VisibleRange Min
baseTicks.Insert(0, axis.VisibleRange.Min.ToDouble());
// Add last label at Axis VisibleRange Max
baseTicks.Add(axis.VisibleRange.Max.ToDouble());
}
}
// Assign to Axis
numericAxis.TickProvider = new NumericTickProviderWithEdges();
Best regards,
Andrew
Please login first to submit.