SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
To give a user some control over the number of gridlines of a DateTimeAxis, I gave the user control over the “MaxAutoTicks”. Works well, except that not all possible MaxAutoTicks settings have an effect on the number of shown major gridlines.
Is there a way to get the number of gridlines ( or the delta ) actually being drawn on the chart? I want to filter out all “MaxAutoTicks” values that have no effect on the amount of grid lines drawn.
I thought about using the DeltaCalculator,with different MaxAutoTicks, to calculate the delta and use that to determine which MaxAutoTicks have an effect on the number of gridlines drawn. Unfortunate I did not see a way to do this without the need to override the DateTimeAxis class to get public access( or a binding) to GetDeltaCalculator.
It sounds like you’re aware of DeltaCalculator and MaxAutoTicks, but are you aware of our TickProvider / DeltaCalculator API documentation?
There is a walkthrough there on creating your own to have full control over the axis tick and gridlines.
Does that help?
Yes, I am also aware of the provider and deltacalculator. I tried to avoid this because the default date DeltaCalculator seems is good (enough). I didn’t want to reinvent the wheel that does almost the same thing as the date DeltaCalculator.
Currently I have an up/down ticker to set the “MaxTicks” so the user the some control over the delta, but many of the possible values have no effect. All I need is a way to figure out which of the possible MaxTicks value would have an effect on the calculate delta for a date axis. I thought about calling the DateDeltaCalculator myself, but the implementation does not seem to be publicly accessible.
Please login first to submit.