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)
- Mi Kyung SUK asked 8 years ago
- You must login to post comments
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
- Andrew Burnett-Thompson answered 8 years ago
- You must login to post comments
Please login first to submit.