Class ChartBase
  
  
  
  
    Inheritance
    System.Object
    ChartBase
      
      
      
      
      
   
  
    Implements
    System.IDisposable
    System.ComponentModel.INotifyPropertyChanged
   
  
  Assembly: Syncfusion.Chart.WinUI.dll
  Syntax
  
    public abstract class ChartBase : Control, IDisposable, INotifyPropertyChanged
   
  Constructors
  
  
  
  
  ChartBase()
  Initializes a new instance of the ChartBase class.
 
  
  Declaration
  
  Fields
  
  
  
  
  The DependencyProperty for Header property.
 
  
  Declaration
  
    public static readonly DependencyProperty HeaderProperty
   
  Field Value
  
    
      
        | Type | 
        
      
    
    
      
        | Microsoft.UI.Xaml.DependencyProperty | 
        
      
    
  
  
  
  
  
  
  Declaration
  
    public static readonly DependencyProperty HorizontalHeaderAlignmentProperty
   
  Field Value
  
    
      
        | Type | 
        
      
    
    
      
        | Microsoft.UI.Xaml.DependencyProperty | 
        
      
    
  
  
  
  InteractiveBehaviorProperty
  
  
  Declaration
  
    public static readonly DependencyProperty InteractiveBehaviorProperty
   
  Field Value
  
    
      
        | Type | 
        
      
    
    
      
        | Microsoft.UI.Xaml.DependencyProperty | 
        
      
    
  
  
  
  LegendProperty
  The DependencyProperty for Legend property.
 
  
  Declaration
  
    public static readonly DependencyProperty LegendProperty
   
  Field Value
  
    
      
        | Type | 
        
      
    
    
      
        | Microsoft.UI.Xaml.DependencyProperty | 
        
      
    
  
  
  
  
  
  
  Declaration
  
    public static readonly DependencyProperty TooltipBehaviorProperty
   
  Field Value
  
    
      
        | Type | 
        
      
    
    
      
        | Microsoft.UI.Xaml.DependencyProperty | 
        
      
    
  
  
  
  
  
  
  Declaration
  
    public static readonly DependencyProperty VerticalHeaderAlignmentProperty
   
  Field Value
  
    
      
        | Type | 
        
      
    
    
      
        | Microsoft.UI.Xaml.DependencyProperty | 
        
      
    
  
  
  
  VisibleSeriesProperty
  The DependencyProperty for Syncfusion.UI.Xaml.Charts.ChartBase.VisibleSeries property.
 
  
  Declaration
  
    public static readonly DependencyProperty VisibleSeriesProperty
   
  Field Value
  
    
      
        | Type | 
        
      
    
    
      
        | Microsoft.UI.Xaml.DependencyProperty | 
        
      
    
  
  Properties
  
  
  
  
  
  Gets or sets the title for chart. It supports the string or any view as title.
 
  
  Declaration
  
    public object Header { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Object | 
        Default value is null. 
 | 
      
    
  
  
  
  
  
  
  
  Gets or sets a value to modify the horizontal alignment of the header.
 
  
  Declaration
  
    public HorizontalAlignment HorizontalHeaderAlignment { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.HorizontalAlignment | 
        It accepts Microsoft.UI.Xaml.HorizontalAlignment values and the default values is HorizontalAlignment.Center. 
 | 
      
    
  
  
  
  
  InteractiveBehavior
  Gets or sets the interactive behavior that allows to override and customize the touch interaction methods.
 
  
  Declaration
  
    public ChartInteractiveBehavior InteractiveBehavior { get; set; }
   
  Property Value
  
  
  
  Examples
  
public class ChartInteractionExt : ChartInteractiveBehavior
{
   <!--omitted for brevity-->
}
<chart:SfCartesianChart >
    <chart:SfCartesianChart.DataContext>
        <local:ViewModel />
    </chart:SfCartesianChart.DataContext>
    <chart:SfCartesianChart.InteractiveBehavior>
        <local:ChartInteractionExt>
        </local:ChartInteractionExt>
    </chart:SfCartesianChart.InteractiveBehavior>
 </chart:SfCartesianChart>
SfCartesianChart chart = new SfCartesianChart();
ViewModel viewModel = new ViewModel();
chart.DataContext = viewModel;
...
ChartInteractionExt interaction = new ChartInteractionExt();
chart.InteractiveBehavior = interaction;
...
 
  
  
  
  Legend
  Gets or sets the legend that helps to identify the corresponding series or data point in chart.
 
  
  Declaration
  
    public ChartLegend Legend { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | ChartLegend | 
        This property takes a ChartLegend instance as value and its default value is null. 
 | 
      
    
  
  
  
  Examples
  
 
<chart:SfCircularChart>
       <chart:SfCircularChart.DataContext>
           <local:ViewModel/>
       </chart:SfCircularChart.DataContext>
       <chart:SfCircularChart.Legend>
           <chart:ChartLegend/>
       </chart:SfCircularChart.Legend>
       <chart:PieSeries ItemsSource="{Binding Data}" 
                        XBindingPath="XValue"
                        YBindingPath="YValue"/>
</chart:SfCircularChart>
SfCircularChart chart = new SfCircularChart();
ViewModel viewModel = new ViewModel();
chart.DataContext = viewModel;
chart.Legend = new ChartLegend();
PieSeries series = new PieSeries()
{
    ItemsSource = viewModel.Data,
    XBindingPath = "XValue",
    YBindingPath = "YValue",
};
chart.Series.Add(series);
 
  
  
  
  SeriesClipRect
  
  
  Declaration
  
    public Rect SeriesClipRect { get; }
   
  Property Value
  
    
      
        | Type | 
        
      
    
    
      
        | Windows.Foundation.Rect | 
        
      
    
  
  
  
  
  
  Gets or sets a tooltip behavior that allows to customize the default tooltip appearance in the chart.
 
  
  Declaration
  
    public ChartTooltipBehavior TooltipBehavior { get; set; }
   
  Property Value
  
  
  
  
  
  
  
  
  
  Gets or sets a value to modify the vertical alignment of the header.
 
  
  Declaration
  
    public VerticalAlignment VerticalHeaderAlignment { get; set; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.VerticalAlignment | 
        It accepts Microsoft.UI.Xaml.VerticalAlignment values and the default value is VerticalAlignment.Center. 
 | 
      
    
  
  Methods
  
  
  
  
  Dispose()
  
  
  Declaration
  
  
  
  
  MeasureOverride(Size)
  
  
  Declaration
  
    protected override Size MeasureOverride(Size availableSize)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Windows.Foundation.Size | 
        availableSize | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        
      
    
    
      
        | Windows.Foundation.Size | 
        
      
    
  
  
  
  
  OnApplyTemplate()
  
  
  Declaration
  
    protected override void OnApplyTemplate()
   
  
  
  
  
  
  
  Declaration
  
    protected override void OnDoubleTapped(DoubleTappedRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.DoubleTappedRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  OnGotFocus(RoutedEventArgs)
  
  
  Declaration
  
    protected override void OnGotFocus(RoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.RoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnHolding(HoldingRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.HoldingRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnKeyDown(KeyRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.KeyRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnKeyUp(KeyRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.KeyRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  OnLostFocus(RoutedEventArgs)
  
  
  Declaration
  
    protected override void OnLostFocus(RoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.RoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnManipulationCompleted(ManipulationCompletedRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.ManipulationCompletedRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.ManipulationDeltaRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnManipulationInertiaStarting(ManipulationInertiaStartingRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.ManipulationInertiaStartingRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnManipulationStarted(ManipulationStartedRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.ManipulationStartedRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnManipulationStarting(ManipulationStartingRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.ManipulationStartingRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnPointerCanceled(PointerRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.PointerRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnPointerCaptureLost(PointerRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.PointerRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnPointerEntered(PointerRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.PointerRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnPointerExited(PointerRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.PointerRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnPointerMoved(PointerRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.PointerRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnPointerPressed(PointerRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.PointerRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnPointerReleased(PointerRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.PointerRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnPointerWheelChanged(PointerRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.PointerRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnRightTapped(RightTappedRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.RightTappedRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    protected override void OnTapped(TappedRoutedEventArgs e)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Microsoft.UI.Xaml.Input.TappedRoutedEventArgs | 
        e | 
         | 
      
    
  
  
  
  
  ResumeSeriesNotification()
  
  
  Declaration
  
    public void ResumeSeriesNotification()
   
  
  
  
  SuspendSeriesNotification()
  
  
  Declaration
  
    public void SuspendSeriesNotification()
   
  Events
  
  
  
  PropertyChanged
  Occurs when a property value changes.
 
  
  Declaration
  
    public event PropertyChangedEventHandler PropertyChanged
   
  Event Type
  
    
      
        | Type | 
        
      
    
    
      
        | System.ComponentModel.PropertyChangedEventHandler | 
        
      
    
  
  
  
  SeriesBoundsChanged
  Event correspond to plot area bound. It invokes when the plot area size changes.
 
  
  Declaration
  
    public event EventHandler<ChartSeriesBoundsEventArgs> SeriesBoundsChanged
   
  Event Type
  
  
  
  Implements
  
      System.IDisposable
  
  
      System.ComponentModel.INotifyPropertyChanged