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

2 posts, 0 answers
  1. Brian
    Brian avatar
    73 posts
    Member since:
    Sep 2010

    Posted 23 Feb 2012 Link to this post

    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.
  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 28 Feb 2012 Link to this post

    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 >>
  3. DevCraft banner
Back to Top