This project is read-only.

Remove first and last LabelTickInfo

Apr 1, 2015 at 10:37 AM

I'm trying to remove the first and the last LabelTickInfo from my axis, because even the property IsStaticAxis is not working like I want. Removing the first ist not very difficult:
                xAxis.LabelProvider.CustomFormatter = tickInfo =>
                    if (tickInfo.Index == 0)
                        return string.Empty;
                    // ...
But how to get the last index?

Thanks in advance.
Aug 4, 2015 at 1:53 PM
Edited Aug 5, 2015 at 5:49 AM

I think you have to create your own tick provider and this shouldb be derrived from LabelProvider<T>

Override CreateLabels(.....)
If you are using DateTimeTicksProviders, override ModifyTicks(.....)

Note: Search in the forum you will get how to create your own LabelTicksProvider.