This is a migrated thread and some comments may be shown as answers.

RadHtmlChart how to keep series area fixed size

3 Answers 112 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 06 Feb 2015, 09:33 PM
my legend if it grows then pushes the chart line area smaller.
is there a way to fix the plot area? and perhaps just have the legend grow to the right or wrap?

3 Answers, 1 is accepted

Sort by
0
Doug
Top achievements
Rank 1
answered on 06 Feb 2015, 09:53 PM
the issue I have is we have the legend on right side and perhaps a long title and perhaps many series.
so the legend moves the chart plot area to the left and will also move up the right side and appear behind the title.

I need a way to control the area of the legend.
I have already written a function to insert breaklines into my title to make it wrap, so I center my title and wrap it every xx words.
I can probably do the same with legend series names. but would like a way to control this in a better fixed way then a willie nillie guesswork of hopefullies my legends don't get too big
0
Doug
Top achievements
Rank 1
answered on 06 Feb 2015, 09:55 PM
screenshot
0
Danail Vasilev
Telerik team
answered on 11 Feb 2015, 09:53 AM
Hi Doug,

The dimensions of the chart's plot area are automatically calculated based on the chart's dimensions as well as other elements including the legend. Therefore I am sorry to say that the desired functionality is not achievable with the current implementation of the control.

What I can suggest is that you create a custom legend, which will not affect the plot area. See such an example is illusrated in the HtmlChart - Conditional Item Colorization online demo.

Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Doug
Top achievements
Rank 1
Answers by
Doug
Top achievements
Rank 1
Danail Vasilev
Telerik team
Share this question
or