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

Setting Width and Height Properties

2 Answers 104 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Himanshukumar
Top achievements
Rank 2
Himanshukumar asked on 04 May 2014, 11:10 AM
Hi,

I am trying to set the width and height of the HTMLcharts via a % rather than pixels as it is more adaptable, however when I do this the charts are shrinked - is there a way to do this even if I place them in a parent DIV and set that to % width?

Thanks,

Using v2014.1.225.40

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 May 2014, 06:53 AM
Hi Himanshukumar,

Please try the following CSS which works fine at my end.

ASPX:
<telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" CssClass="ChartStyle">
...
</telerik:RadHtmlChart>

CSS:
.ChartStyle
{
    width: 40% !important;
    height: 100% !important;
}

Thanks,
Shinu.
0
Himanshukumar
Top achievements
Rank 2
answered on 05 May 2014, 12:27 PM
Thanks Shinu, that worked great!
Tags
Chart (HTML5)
Asked by
Himanshukumar
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Himanshukumar
Top achievements
Rank 2
Share this question
or