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
920
WinChart Legend Item Spacing
posted

Hi

I have a legend that displays horizontally at the bottom of a line chart.  Is it possible to dynamically change the legend item spacing so that all the legend item can fit in the available space?

Is it possible to do this ChartDrawItem?

Any help greatly appreciated.

Regards

James O'Doherty

Solutions Architect

Parents
No Data
Reply
  • 53790
    Verified Answer
    posted

    Hello James,

    If I understood your scenario correctly, your legend area will be will remain with the same size, while the number of the items in the legend may vary. In this scenario, one possible approach might be changing the font size of the items, to fit in the available legend space. Could you please take a look at the attached sample for more details. Please if you have any questions, or if you think that I didn`t reproduce your scenario, please feel free to ask me or correct my sample.

    Regards

    CompositeLineChart_Legeda.zip
Children