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
705
Resize legend items
posted

Hi,

I have the following problem:
If I have more items in my Legend (More Series), each item becomes smaller.
But if I have one single legend item it is very big. The text ends with "...".

I want to print this chart out, so I want to achieve that the legend resize itself, so
that the whole text is readable, no matter how big the chart is.

  • 138253
    Verified Answer
    Offline posted

    Hello,

     

    I suggest you use the code provided above.

  • 125
    posted

     

     

     

     

     

     

     

    Set the Margin of Legend and Margin Type must be perecent try below code. Try to increase or decrease the value of margin it will show yu the affect in size of Legend. remmber the sum of margin of top+bottom and right+left should nto exceed 100. As it calculates in perecentage. So when you give margin make sure about the value distributuon of margins top, bottom,left,right 

    <igCA:XamChart.Legend>

     

     

     

     

    <igCA:Legend MarginType="Percent" Foreground="#FFE6E6E6" Margin

    ="70,10,10,55" />