ChartWebControl WIDTH

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

1 Reply

MS Manimala S Syncfusion Team 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.

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

Kindly let me know if it helps.

Thanks,
Manimala.

Loader.
Up arrow icon