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
235
Problem with chart legend
posted

Is there any way to set the legend to a fixed size? I want to avoid dropping/adding elements to the legend just because the users resized the form.Essentially I would like the legend to take as much space required in order to display all the elements (i.e. series) in the chart. Thanks in advance.

  • 28496
    Offline posted

    this is only possible using composite chart, which allows you to set the legend to a fixed pixel size.  the standard chart legend works only with a percentage size, as specified by the SpanPercentage property.  i think to get the results you're looking for, you will need to add code to change the SpanPercentage in the chart's Resize event.