Hi Jon,
Thanks for your interest in Syncfusion products. Template for Area and StackingArea ChartType differs from the Line and Column charts. A path object is used to draw the ChartSeries and so we will not be able to add a ellipse to the line directly. But as a workaround, we can use the SymbolTemplate of the ChartAdornmentInfo class to display an path and on mouse hover, its corresponding value can be displayed in the tooltip.
The following DataTemplates can be used to display a ellipse in the Area type series.
XAML Code:
Margin="0"
Padding="2"
BorderBrush="Black"
Background="Transparent"
BorderThickness="0">
Template="{StaticResource AreaTemplate1}" Data="0 {7 4} 1 {8 3} 2 {9 7} 3 {3 6} 4 {1 2} 5 {8 11} 6 {3 2}"
Type="StackingArea">
C# Code:
//Converter class
public class ValueConverter : IValueConverter
{
#region IValueConverter Members
public object Convert(object values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
try
{
ChartPoint point = (ChartPoint)values;
return "X = " + point.X.ToString() + ", Y = " + point.Y.ToString();
}
catch (Exception ee) { }
return "";
}
public object ConvertBack(object value, Type targetTypes, object parameter, System.Globalization.CultureInfo culture)
{
throw new System.NotImplementedException();
}
#endregion
}
Let me know if you have further queries.
Regards,
Athaur Rahman GS