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
1597
large label text in legend are overlaps
posted

Hi All,

We are using Infragistic version 6.3 and plot a pie chart with legend, please see the attach image.

pie chart

 

In legend the label names are overlaps, unable to find any property to set single legend label in 2 lines if vertical limit is reached,

Can any one please suggests is there any property to assign longer text labels in to lines when it overlaps.

Case: second last Legend label in first legend column.  

Thank you in Advance.

 

 

 

 

Parents
No Data
Reply
  • 28496
    Offline posted

    The legend doesn't have this capability, unfortunately.  You can request a feature here: http://devcenter.infragistics.com/protected/requestfeature.aspx

    The legend does use an average label length to determine the width of columns, so it might work to implement IRenderLabel and use the string.PadRight method to append spaces to the end of each label, so they are all of a fixed length matching the longest label.  That might work.

    Otherwise, if simply reducing the font size is not an option, the last resort is to hide the legend, handle the FillSceneGraph event, and draw the entire legend in that event handler using your own layout logic.  That will take a lot of work, but you will have complete flexibility.

Children
No Data