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.
Unfortunately, activation email could not send to your email. Please try again.

ChartWebControl WIDTH

Thread ID:

Created:

Updated:

Platform:

Replies:

82639 Jun 18,2009 04:24 AM Jun 18,2009 09:41 AM ASP.NET Web Forms (Classic) 1
loading
Tags: Chart
Stephen McCulloch
Asked On June 18, 2009 04:24 AM

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 09:41 AM

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.

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

Kindly let me know if it helps.

Thanks,
Manimala.

CONFIRMATION

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.

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.

;