We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ChartWebControl WIDTH

Thread ID:





82639 Jun 18,2009 08:24 AM UTC Jun 18,2009 01:41 PM UTC ASP.NET Web Forms (Classic) 1
Tags: Chart
Stephen McCulloch
Asked On June 18, 2009 08:24 AM UTC

I would like to control the width of my controls so that no matter what the length of text in the Legend the Legend ALWAYS stays the same fixed width.

Is this possible?

Any width properties I've found have ultimately no effect. The overall Chart width works fine, but if I set the internal ChartWebArea or Legend width is some way, it always appears to have no effect.

Thanks, Stephen

Manimala S [Syncfusion]
Replied On June 18, 2009 01:41 PM UTC

Hi Stephen,

Thanks for using Essential chart.

To vary the legend size in chart web control we have the Size property of the legend items collection. Here is the code snippet.

Me.ChartWebControl1.Legend.ItemsSize = New Size(20, 20)
Me.ChartWebControl1.Legend.Font.Size = 12

Kindly let me know if it helps.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon