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
150
XamDataChart inside scroll area, freeze NumericYAxis
posted

Hello

I am trying to create custom control with Grid and below XamDataChart, bars should be under the corresponding column.

The problem is. I would like to move NumericYAxis outside of XamDataChart control. and put it in FreezeArea.
So Labels should be visible despite of scroll position, Scroll should affect only bars.

Could you advice?

Parents
  • 34510
    Offline posted

    Hi Petr,

    This thread seems to have slipped through the cracks.  But you did create a private support case for this same issue and I had sent you some information about that.  I'll include that information here as well in case someone else is looking for something similar.

    "For that you should probably just use two XamDataCharts side by side.  Both charts should be bound to the same data but in the left chart, set the series Visibility to collapsed and set the X axis LabelSettings.Visibility to collapsed as well.  This should leave the Y axis as the only thing visible in that chart.  Then you can put the left chart in the freeze area.

    For the right side chart, set the Y axis LabelSettings.Visibility to collapsed so the Y axis labels do not render and leave the X axis and series visible.  This should give you the effect you are looking for.

    I would like to mention that your current approach is ok if you don't have that many columns but for large data sets you may run into performance issues because the chart is unable to virtualize its elements properly.  This is due to being inside of a ScrollViewer as it appears to be in your screenshot.  Just something to be wary of."

Reply Children