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

Change Chart Size after it is plotted....

1 Answer 38 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Abdul
Top achievements
Rank 2
Abdul asked on 01 Dec 2010, 12:44 PM
once the chart is plotted and after some changes i want to resize the chart from server side, i have tried the following methods

chart1.Appearance.Dimensions.SetDimentions(x,y)

also tried alot of other techniques

this is my chart tag...
<telerik:RadChart ID="chr_kgs" runat="server" Skin="DeepBlue" Visible="true" ChartImageFormat="Jpeg">
        <PlotArea Appearance-FillStyle-MainColor="#003366" XAxis-Appearance-LabelAppearance-FillStyle-FillSettings-ImageDrawMode="Align" Appearance-FillStyle-FillType="Gradient" Appearance-FillStyle-FillSettings-GradientMode="Vertical" Appearance-FillStyle-FillSettings-HatchStyle="BackwardDiagonal" Appearance-FillStyle-SecondColor="#003366" YAxis2-Appearance-MinorGridLines-Visible="True" YAxis2-Appearance-MinorTick-Visible="False" YAxis-Appearance-MinorGridLines-Visible="False" YAxis-Appearance-MinorGridLines-HideWithAxis="True" YAxis-Appearance-MajorTick-Width="1" XAxis-Appearance-MajorGridLines-HideWithAxis="True" XAxis-Appearance-MajorGridLines-Visible="False" XAxis-Appearance-MinorGridLines-Visible="False" XAxis-Appearance-MajorGridLines-Width="0" XAxis-Appearance-MajorTick-Width="1" XAxis-Appearance-MajorGridLines-Color="#003366" XAxis-Appearance-MajorTick-Color="#003366" XAxis-Appearance-MinorGridLines-Color="#003366" XAxis-Appearance-MinorTick-Color="#003366" YAxis-Appearance-MinorGridLines-Color="#003366">
             
        </PlotArea>
         
        <Appearance BarWidthPercent="10" Dimensions-AutoSize = false ></Appearance>
        </telerik:RadChart>

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 06 Dec 2010, 01:50 PM
Hi Abdul,

RadChart creates an image on the server and sends it to the client so there is no way on the client side to change that size. The solution is to use JavaScript and send requests to the server. Please take a look on this article in our code library. It should answer all your questions.

Kind regards,
Yavor Ivanov
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Chart (Obsolete)
Asked by
Abdul
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Share this question
or