This question is locked. New answers and comments are not allowed.
I've got a pie chart (With a black background)
And a style for the PlotArea (To give it a gray background)
And it gives me this result:
http://i.imgur.com/xEBgoiv.png
My issue is the incredible amount of black space surrounding the actual plot. Tons of wasted space that I can not figure out how to get rid of. We don't have an AutoStyle property like the ASP.NET controls. On the SilverLight boards I read that you should style the PlotArea, but the plotarea is just the tiny part in the middle.
How can I get the pie chart to fill the entire space taken by this control?
Best,
Ted
<
Chart:RadPieChart
x:Name
=
"PieChartLoansTopPerformers"
Grid.RowSpan
=
"2"
Grid.Column
=
"0"
ClipToBounds
=
"True"
PaletteName
=
"DefaultDark"
FontSize
=
"8"
Width
=
"250"
Height
=
"250"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Top"
VerticalContentAlignment
=
"Top"
HorizontalContentAlignment
=
"Left"
PlotAreaStyle
=
"{StaticResource plotStyle}"
Background
=
"Black"
>
<
Chart:PieSeries
x:Name
=
"pieSeries"
ShowLabels
=
"False"
ItemsSource
=
"{Binding NetIncomeByLoanOfficer}"
ClipToPlotArea
=
"True"
RadiusFactor
=
"0.5"
>
<
Chart:PieSeries.ValueBinding
>
<
Chart:PropertyNameDataPointBinding
PropertyName
=
"measure"
/>
</
Chart:PieSeries.ValueBinding
>
<
Chart:PieSeries.LegendTitleBinding
>
<
Chart:PropertyNameDataPointBinding
PropertyName
=
"dimension"
/>
</
Chart:PieSeries.LegendTitleBinding
>
</
Chart:PieSeries
>
</
Chart:RadPieChart
>
And a style for the PlotArea (To give it a gray background)
<
Style
x:Key
=
"plotStyle"
TargetType
=
"Border"
>
<
Setter
Property
=
"Background"
Value
=
"Gray"
/>
</
Style
>
And it gives me this result:
http://i.imgur.com/xEBgoiv.png
My issue is the incredible amount of black space surrounding the actual plot. Tons of wasted space that I can not figure out how to get rid of. We don't have an AutoStyle property like the ASP.NET controls. On the SilverLight boards I read that you should style the PlotArea, but the plotarea is just the tiny part in the middle.
How can I get the pie chart to fill the entire space taken by this control?
Best,
Ted