WinUI

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FastScatterBitmapSeries

    Show / Hide Table of Contents

    Class FastScatterBitmapSeries

    The FastScatterBitmapSeries is a special kind of scatter series that can render a collection with large number of data points.

    Inheritance
    System.Object
    ChartSeries
    DataMarkerSeries
    CartesianSeries
    XyDataSeries
    FastScatterBitmapSeries
    Implements
    ISupportAxes
    Inherited Members
    XyDataSeries.YBindingPathProperty
    XyDataSeries.YBindingPath
    CartesianSeries.DataLabelSettingsProperty
    CartesianSeries.ShowTrackballInfoProperty
    CartesianSeries.XAxisNameProperty
    CartesianSeries.YAxisNameProperty
    CartesianSeries.OnApplyTemplate()
    CartesianSeries.DataLabelSettings
    CartesianSeries.XAxisName
    CartesianSeries.YAxisName
    CartesianSeries.ShowTrackballInfo
    CartesianSeries.ISupportAxes.ActualXAxis
    CartesianSeries.ISupportAxes.ActualYAxis
    CartesianSeries.ISupportAxes.VisibleXRange
    CartesianSeries.ISupportAxes.VisibleYRange
    DataMarkerSeries.ShowDataLabelsProperty
    DataMarkerSeries.ShowDataLabels
    ChartSeries.SpacingProperty
    ChartSeries.TooltipTemplateProperty
    ChartSeries.EnableTooltipProperty
    ChartSeries.ListenPropertyChangeProperty
    ChartSeries.IsSeriesVisibleProperty
    ChartSeries.XBindingPathProperty
    ChartSeries.ItemsSourceProperty
    ChartSeries.TrackballLabelTemplateProperty
    ChartSeries.FillProperty
    ChartSeries.LabelProperty
    ChartSeries.LegendIconProperty
    ChartSeries.LegendIconTemplateProperty
    ChartSeries.IsVisibleOnLegendProperty
    ChartSeries.EnableAnimationProperty
    ChartSeries.AnimationDurationProperty
    ChartSeries.PaletteBrushesProperty
    ChartSeries.StrokeProperty
    ChartSeries.StrokeThicknessProperty
    ChartSeries.SuspendNotification()
    ChartSeries.ResumeNotification()
    ChartSeries.OnPointerPressed(PointerRoutedEventArgs)
    ChartSeries.OnTapped(TappedRoutedEventArgs)
    ChartSeries.OnPointerExited(PointerRoutedEventArgs)
    ChartSeries.OnPointerReleased(PointerRoutedEventArgs)
    ChartSeries.PaletteBrushes
    ChartSeries.TooltipTemplate
    ChartSeries.EnableTooltip
    ChartSeries.ListenPropertyChange
    ChartSeries.IsSeriesVisible
    ChartSeries.ItemsSource
    ChartSeries.TrackballLabelTemplate
    ChartSeries.Fill
    ChartSeries.Label
    ChartSeries.LegendIcon
    ChartSeries.LegendIconTemplate
    ChartSeries.IsVisibleOnLegend
    ChartSeries.XBindingPath
    ChartSeries.EnableAnimation
    ChartSeries.AnimationDuration
    ChartSeries.StrokeThickness
    ChartSeries.Chart
    ChartSeries.Stroke
    ChartSeries.PropertyChanged
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.Chart.WinUI.dll
    Syntax
    public class FastScatterBitmapSeries : XyDataSeries, ISupportAxes
    Remarks

    To render a series, create an instance of FastScatterBitmapSeries class, and add it to the Series collection.

    It provides options for Fill, PaletteBrushes, Stroke, StrokeThickness, and opacity to customize the appearance.

    EnableTooltip - A tooltip displays information while tapping or mouse hovering over a segment. To display the tooltip on chart, need to set the EnableTooltip property as true in FastScatterBitmapSeries class, and also refer TooltipBehavior property.

    Data Label - Data labels are used to display values related to a chart segment. To render the data labels, you need to set the ShowDataLabels property as true in FastScatterBitmapSeries class. To customize the chart data labels alignment, placement, and label styles, you need to create an instance of CartesianDataLabelSettings and set to the DataLabelSettings property.

    Animation - To animate the series, set True to the EnableAnimation property.

    LegendIcon - To customize the legend icon using the LegendIcon property.

    Examples
    • Xaml
    • C#
    • ViewModel
        <chart:SfCartesianChart>
    
              <chart:SfCartesianChart.XAxes>
                  <chart:NumericalAxis/>
              </chart:SfCartesianChart.XAxes>
    
              <chart:SfCartesianChart.YAxes>
                  <chart:NumericalAxis/>
              </chart:SfCartesianChart.YAxes>
    
              <chart:FastScatterBitmapSeries ItemsSource="{Binding Data}"
                                             XBindingPath="XValue"
                                             YBindingPath="YValue"/>
    
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
    
        NumericalAxis xAxis = new NumericalAxis();
        NumericalAxis yAxis = new NumericalAxis();
    
        chart.XAxes.Add(xAxis);
        chart.YAxes.Add(yAxis);
    
        ViewModel viewModel = new ViewModel();
    
        FastScatterBitmapSeries series = new FastScatterBitmapSeries();
        series.ItemsSource = viewModel.Data;
        series.XBindingPath = "XValue";
        series.YBindingPath = "YValue";
        chart.Series.Add(series);
        public ObservableCollection<Model> Data { get; set; }
    
        public ViewModel()
        {
           Data = new ObservableCollection<Model>();
           Data.Add(new Model() { XValue = 10, YValue = 100 });
           Data.Add(new Model() { XValue = 20, YValue = 150 });
           Data.Add(new Model() { XValue = 30, YValue = 110 });
           Data.Add(new Model() { XValue = 40, YValue = 230 });
        }

    Constructors

    FastScatterBitmapSeries()

    Declaration
    public FastScatterBitmapSeries()

    Fields

    PointHeightProperty

    Identifies the PointHeight dependency property.

    Declaration
    public static readonly DependencyProperty PointHeightProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for PointHeight dependency property.

    PointWidthProperty

    Identifies the PointWidth dependency property.

    Declaration
    public static readonly DependencyProperty PointWidthProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for PointWidth dependency property.

    ShapeTypeProperty

    Identifies the ShapeType dependency property.

    Declaration
    public static readonly DependencyProperty ShapeTypeProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for ShapeType dependency property.

    Properties

    PointHeight

    Gets or sets a value that specifies the height of the FastScatterBitmap segment.

    Declaration
    public double PointHeight { get; set; }
    Property Value
    Type Description
    System.Double

    It accepts double value and the default value is 3.

    PointWidth

    Gets or sets a value that specifies the width of the FastScatterBitmap segment.

    Declaration
    public double PointWidth { get; set; }
    Property Value
    Type Description
    System.Double

    It accepts double value and the default value is 3.

    ShapeType

    Gets or sets different types of shapes in a fast scatter bitmap series.

    Declaration
    public ChartSymbol ShapeType { get; set; }
    Property Value
    Type Description
    ChartSymbol

    This property accepts ChartSymbol values, and the default shape type is ellipse.

    Remarks

    Fast scatter bitmap series does not support Custom, HorizontalLine and VerticalLine shapes. By using the above shapes for the fast scatter bitmap series, you can render only the default type, which is an ellipse.

    Methods

    OnPointerMoved(PointerRoutedEventArgs)

    Declaration
    protected override void OnPointerMoved(PointerRoutedEventArgs e)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.Input.PointerRoutedEventArgs e
    Overrides
    ChartSeries.OnPointerMoved(PointerRoutedEventArgs)

    Implements

    ISupportAxes

    See Also

    FastScatterBitmapSegment
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved