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
335
Display legend items on one line
posted

Is it possible to display the legend items horizontally ? For example if I decide to show the legend at the bottom of the chart, I would like the legend items to display as one line left to right instead of stacked.

Thanks in advance,

 

 

  • 28496
    Suggested Answer
    Offline posted

    sorry, only vertical stacking of legend items is supported in the current version.  you can submit a feature request here: http://devcenter.infragistics.com/protected/requestfeature.aspx

  • 9836
    posted

    Currently  there is no build-in functionality to display the legend items horizontally. However I think this could be possible by creating a custom LegendItemTemplate and set some transformations (RotateTransform,TranslateTransform) to the elements or rotating the whole Legend. Also you can iterate  throug the VisualTree and get the ContentControls which are used to present the legent items and then set a margin or transformation to them. You can refer to the following threads in the forums about how to change the position of the Legend and how to create custom template for the items:

    http://blogs.infragistics.com/forums/p/16513/61491.aspx

    http://blogs.infragistics.com/forums/p/16513/60140.aspx

    In order to get this feature into a future release,please submit a feature requst at the following webpage:

    http://devcenter.infragistics.com/Protected/RequestFeature.aspx

    Hope this helps

    Regards

    Vlad