how to change the plot area size

Thread is closed for posting
2 posts, 0 answers
  1. Amey
    Amey avatar
    16 posts
    Member since:
    Feb 2008

    Posted 29 Feb 2008 Link to this post

    There are no height and width properties to change the size of the plot area of telerik rad chart? How can we change the size of the plot area?
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 04 Mar 2008 Link to this post

    Hello Amey,

    You can control the size by customizing the margins of the plot area like this:

    <telerik:RadChart ID="RadChart1" runat="server"
        <PlotArea> 
            <Appearance Dimensions-Margins="30%,30%,30%,30%"
            </Appearance> 
        </PlotArea> 
        <Series> 
            <telerik:ChartSeries Name="Series 1" Type="Bar" YAxisType="Primary"
                <Appearance> 
                    <EmptyValue Mode="Approximation"
                    </EmptyValue> 
                </Appearance> 
                <Items> 
                    <telerik:ChartSeriesItem Name="Item 1" YValue="4"
                    </telerik:ChartSeriesItem> 
                    <telerik:ChartSeriesItem Name="Item 2" YValue="2"
                    </telerik:ChartSeriesItem> 
                </Items> 
            </telerik:ChartSeries> 
        </Series> 
    </telerik:RadChart> 


    Hope this helps.


    Regards,
    Manuel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top