Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
450
Invisible axes
posted

Hi. I cannot guarantee that my series have points for all DateTimes, so I am using multiple CategoryDateTimeXAxis (one per series) with appropriately set min/max values. My series are therefore lined up correctly. I have also created a "master" CategoryDateTimeXAxis so that I have complete control of labels and grid lines.

Therefore I don't need the non-master axes to render in any way (i.e. no labels, grid lines, etc.). 

For best performance, how should I configure the non-master indices so that no time is wasted enumerating data? I have LabelSettings.Visibility=Collapsed and MajorStrokeThickness/MinorStrokeThickness set to zero, but is this enough? For example, I still see calls to RenderAxisOverride.

Note I have also tried extending CategoryDataTimeXAxis with an empty RenderAxisOverride method. This presents some initialisation problems (series not rendered) unless I do a reflected call to the internal InitializeActualMinimumAndMaximum method. Obviously, touching non-public members in this way is never recommended but do please let me know if there is any mileage in extending CategoryDataTimeXAxis to achieve maximum performance in my scenario.

Many thanks

Parents Reply Children
No Data