We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Lose BackgroundColor when i'm using a labelTemplate

Hi,

When i using a label template in a ChartAdornmentInfo, i lose background color.

<charts:SfChart.Resources>
    <DataTemplate x:Key="labeltemplate">
        <TextBlock Text="{Binding}" FontSize="20" Padding="5" />
    </DataTemplate>
</charts:SfChart.Resources>

<charts:DoughnutSeries.AdornmentsInfo>
    <charts:ChartAdornmentInfo UseSeriesPalette="True" ConnectorHeight="50" ShowConnectorLine="True" ShowMarker="True"
                                                    ShowLabel="True" SegmentLabelFormat="# €" LabelTemplate="{StaticResource labeltemplate}" />
</charts:DoughnutSeries.AdornmentsInfo>

What is the solution for retrieving the good background color according to the Doughnut section ?

Regards,
Aurélien

2 Replies

AU Aurélien March 24, 2015 11:21 AM UTC

It's OK.
I've found the solution in your Accumulation Pie example.


SS Suresh S Syncfusion Team March 25, 2015 01:33 PM UTC

Hi Aurelin,

 

We are glad to know that issue resolved at your end.

 

Regards,

Suresh S


Loader.
Live Chat Icon For mobile
Up arrow icon