Category / Section
What are the chart types to which custom templates can be applied?
1 min read
Custom Templates can be applied to any type of elements such as label, lines, text blocks, series etc., in any type of chart.
The following code snippet is a sample template for area chart.
XAML
<DataTemplate x:Key="AreaTemplate1"> <Canvas> <Path Name="Path" Data="{Binding Geometry}" Fill="#65938866" Stroke="Black"/> <Line X1="{Binding X1}" X2="{Binding X2}" Y1="{Binding Y1}" Y2="{Binding Y2}" StrokeThickness="1" Stroke="Black"/> </Canvas> </DataTemplate>