Hi Sean,
Thanks for using Syncfusion products.
You can show the label inside symbol in adornment by using LabelTemplate of ChartAdornmentInfo. Please refer the below code snippets.
Code Snippet for LabelTemplate:
|
<DataTemplate x:Key="labelTemplate">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="15" />
</Grid.RowDefinitions>
<Rectangle Grid.Row="0" x:Name="Rect" Width="15" Height="25" Fill="Maroon" RenderTransformOrigin="0.5,0.3">
<Rectangle.RenderTransform>
<RotateTransform Angle="135" />
</Rectangle.RenderTransform>
</Rectangle>
<TextBlock Grid.Row="0" Text="{Binding}" FontSize="11" Foreground="White"
HorizontalAlignment="Center" VerticalAlignment="Top"/>
</Grid>
</DataTemplate> |
Code snippet for setting LabelTemplate:
|
<syncfusion:ColumnSeries.AdornmentsInfo>
<syncfusion:ChartAdornmentInfo LabelTemplate="{StaticResource labelTemplate}"/>
</syncfusion:ColumnSeries.AdornmentsInfo> |
Please find the output screenshot below,
You can refer the following user guide link for more details about customizing Adornments
We have prepared a sample for this which can be downloaded from the following link.
Please let us know, if you need any further assistance on this.
Regards,
Divya Venkatesan