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

Chart Image Margins

1 Answer 55 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 13 Dec 2011, 05:26 PM
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>

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 16 Dec 2011, 09:59 AM
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
Tags
Chart (Obsolete)
Asked by
Craig
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or