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
  • 450
    posted

    I should point out that I am not currently experiencing performance problems, but I will need to squeeze maximum performance from XamDataChart since we envisage some complex charting scenarios with multiple series and lots of interactive panning and zooming.

    Also, is there any advantage/requirement to sort ItemsSource values by DateTime? This post from Graham suggests not: http://community.infragistics.com/forums/p/56556/290318.aspx#290318

Reply Children