Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.11 KB

kb-chartview-howto-place-text-in-center-of-doughnutseries.md

File metadata and controls

42 lines (33 loc) · 1.11 KB
title description page_title type slug position tags ticketid res_type
How to place text in doughnut series center
Add a label in the center of a DoughnutSeries.
Include text in the middle of the doughnut inside a doughnut series
how-to
kb-chartview-howto-place-text-in-center-of-doughnutseries
0
label, doughnut, series, center, text, pie, chart
1449533
kb

Environment

Product RadChartView for WPF

Description

How to add text in the center of a doughnut series.

Solution

You can define the chart and position a TextBlock with the corresponding label on top of it as shown in Example 1.

[XAML] Example 1: Adding a TextBlock label

{{region xaml-kb-chartview-howto-place-text-in-center-of-doughnutseries-0}}

<Grid>
    <telerik:RadPieChart>
        <!-- some settings here -->
    </telerik:RadPieChart>
    <TextBlock Text="Label Text" VerticalAlignment="Center" HorizontalAlignment="Center" />
</Grid>

{{endregion}}

See Also

  • [DoughnutSeries]({%slug radchartview-series-doughnutseries%})