Hi Ros,
Onto the
AutoSize property -- its default value is
true, meaning, that RadChart will define the legend size according to the content. You should set it to
false if you need to provide your own size settings.
Unfortunately, this version of RadChart is quite old and it does not include features like the
automatic layout calculation and specific legend items order orientation (row or column), available in later versions of the control (ASP.NET AJAX versions). Version 2.9.1. is not as flexible and the means for handling such situations are limited. You have already found the
HeightRatio and
WidthRatio properties. Alternatively, you can define your own size for the legend. Unfortunately both these require some knowledge about the number of items shown. I have attached a small example, showing both approaches (one is commented out). You can enhance them with some heuristics (e.g. you can add additional pixels to the legend height for every third item available or increment the
HeightRatio property in a similar manner).
Kind regards,
Ves
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>