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
405
The Chart Legend got truncated if the Chart window size is reduced
posted

Hi,

I am using Dock manager and using chart with in pane. when i resize the pane the chart legened truncat.

The setting are:

this.View.Chart.Legend.Location = LegendLocation.Top;

this.View.Chart.Legend.Margins.Bottom = 5;

// this.View.Chart.Legend.Margins.Top = 300;

this.View.Chart.Legend.Margins.Right = 1;

this.View.Chart.Legend.SpanPercentage = 10;

this.View.Chart.Legend.Visible = true;

this.View.Chart.Legend.Margins.Left =1;

Please give a solution for  this problem.

Thanks and Regards,
Rosy Malhotra

 

  • 28496
    Offline posted

     To prevent this from happening, you can do one of the following:

    - decrease the top and bottom margins using the Legend.Margins property.

    - increase the Legend.SpanPercentage property.

    - reduce the size of Legend.Font.