Chart Image Margins

Thread is closed for posting
2 posts, 0 answers
  1. Craig
    Craig avatar
    20 posts
    Member since:
    Aug 2006

    Posted 13 Dec 2011 Link to this post

    Is there a way to have the chart image fill the image?

    I have set the margins and padding to 0px but I am still getting a lot of white space around the image. It's creating too much of a gap between the list of charts.

    Bellow is my chart markup and attached is the image.

    Thanks,
    Craig
    <telerik:RadChart ID="RadChart2" runat="server" DefaultType="Pie" OnItemDataBound="RadChart2_ItemDataBound"
    DataSourceID="SqlDataSourceBusArea" Skin="Office2007" IntelligentLabelsEnabled="True"
    AutoLayout="True" Height="275px" >
    <Appearance>
    <Border Visible="False"></Border>
    </Appearance>
    <Series>
    <telerik:ChartSeries Name="sum_area" Type="Pie" DataYColumn="bu_area" DefaultLabelValue="#Y{N0} (#%)">
    <Appearance ShowLabels="true" LegendDisplayMode="ItemLabels">
    <FillStyle MainColor="69, 115, 167" FillType="Solid">
    </FillStyle>
    <TextAppearance TextProperties-Color="Black" TextProperties-Font="Arial, 9pt">
    </TextAppearance>
    <Border Color="69, 115, 167"></Border>
    </Appearance>
    </telerik:ChartSeries>
    </Series>
    <Legend>
    <Appearance Dimensions-Margins="0px, 0px, 0px, 0px" Dimensions-Paddings="0px, 10px, 0px, 3px"
    Dimensions-AutoSize="True" Dimensions-Height="165px" Dimensions-Width="85px">
    <ItemTextAppearance TextProperties-Color="Black" AutoTextWrap="False">
    </ItemTextAppearance>
    <ItemMarkerAppearance Figure="Square">
    </ItemMarkerAppearance>
    <Border Visible="false" />
    </Appearance>
    </Legend>
    <PlotArea>
    <Appearance Dimensions-Margins="0px, 0px, 0px, 0px" SeriesPalette="Vista" Dimensions-Height="275px"
    Dimensions-Paddings="0px, 0px, 0px, 0px">
    <FillStyle MainColor="" FillType="Solid">
    </FillStyle>
    <Border Visible="False" />
    </Appearance>
    </PlotArea>
    <ChartTitle Visible="false">
    <Appearance Visible="false"></Appearance>
    </ChartTitle>
    </telerik:RadChart>
  2. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 16 Dec 2011 Link to this post

    Hello Craig,

    Since you have a Pie Chart, you may use the DiameterScale property to increase the size of the Pie. This is described in our help topic.

    Regards,
    Evgenia
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top