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

How to set chart width to be twice as its height?

1 Answer 71 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brian
Top achievements
Rank 1
Brian asked on 23 Feb 2012, 04:45 PM
How can I set the width of a chart (actual chart, not with axis labels, etc) to be twice the height of a chart?

I can't hard code the height/width.  I need the height to be 100%, which it is when I don't set any height value but then need the width to be half of the height. I am looking for relative sizing of the chart so as the user changes the window size, the chart would retain its relative size (twice as tall as it is wide).

Anyone know of a way to do this?

Tks.

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 28 Feb 2012, 08:47 AM
Hi,

If I understand correctly - you need to apply 1:2 ratio to the plot area's dimensions. Unfortunately such a behavior can not be achieved out-of-the-box.

Kind regards,
Petar Marchev
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Chart
Asked by
Brian
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or