WPF

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

    Show / Hide Table of Contents

    Class ChartArea

    Class represents chart area.

    Inheritance
    System.Object
    ChartArea
    OlapArea
    SyncChartAreas
    TimeLineControl
    Implements
    System.IDisposable
    IChartSerializer
    Namespace: Syncfusion.Windows.Chart
    Assembly: Syncfusion.Chart.Wpf.dll
    Syntax
    public class ChartArea : Control, IDisposable, IChartSerializer
    Remarks

    As per WPF Chart logic, area is a child of chart control and it's the part where series are drawn.

    Single chart control instance may contain multiple chart areas assigned to its Areas collection.

    Layout of areas on chart control provides ChartPanel panel.

    Examples

    Example demonstrates creation of area on chart control.

    C#:

    //Creating new chart control instance.
    Chart chart = new Chart();
    //Creating chart area instance.
    ChartArea chartArea = new ChartArea();
    //Creating chart series instance.
    ChartSeries series = new ChartSeries();
    //Creating chart list data instance.
    ChartListData data = new ChartListData();
    //Filling data with points.
    data.Add(new ChartPoint(1, 1));
    data.Add(new ChartPoint(2, 2));
    data.Add(new ChartPoint(3, 3));
    data.Add(new ChartPoint(4, 4));
    //Assigning data points collection.
    series.Data = data;
    //Adding series to area.
    chartArea.Series.Add(series);
    //Adding area to chart.
    chart.Areas.Add(chartArea);
    XAML:
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:Chart.Areas>
    <!--Adding char area to chart areas collection-->
    <syncfusion:ChartArea>
    <!--Adding chart series to area-->
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    </syncfusion:ChartArea>
    </syncfusion:Chart.Areas>
    </syncfusion:Chart>

    Constructors

    ChartArea()

    Initializes a new instance of the ChartArea class.

    Declaration
    public ChartArea()
    Remarks

    Primary and secondary axes are being created automatically.

    ChartArea(Boolean)

    Initializes a new instance of the ChartArea class for designer.

    Declaration
    [Obsolete("Use the default constructor of chart area")]
    public ChartArea(bool withDefaultSeries)
    Parameters
    Type Name Description
    System.Boolean withDefaultSeries

    if set to true [with default series].

    Fields

    Allow3DRotateProperty

    Proeprty for Allow to Rotate the Chart in 3D Mode

    Declaration
    public static readonly DependencyProperty Allow3DRotateProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    AllowSegmentDragDropProperty

    Property for AllowSegmentDragDrop

    Declaration
    public static readonly DependencyProperty AllowSegmentDragDropProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    AlternatingFillDirectionProperty

    Identifies the AlternatingFillDirection dependency property.

    Declaration
    public static readonly DependencyProperty AlternatingFillDirectionProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    AlternatingFillModeProperty

    Identifies the AlternatingFillMode dependency property.

    Declaration
    public static readonly DependencyProperty AlternatingFillModeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    AlternatingGridBackgroundProperty

    Identifies the AlternatingGridBackground dependency property.

    Declaration
    public static readonly DependencyProperty AlternatingGridBackgroundProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    AreaTypeProperty

    Identifies the AreaType dependency property.

    Declaration
    public static readonly DependencyProperty AreaTypeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    AxesThicknessProperty

    Identifies the AxesThickness dependency property.

    Declaration
    public static readonly DependencyProperty AxesThicknessProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Camera3DProperty

    Using a DependencyProperty as the backing store for Camera3D. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty Camera3DProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Chart3DSettingsProperty

    Using a DependencyProperty as the backing store for Chart3DSettings. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty Chart3DSettingsProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ColorModelProperty

    Using a DependencyProperty as the backing store for ColorModel. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty ColorModelProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ContextMenuTypeProperty

    Select the Proeprty for ContextMenuType as Default,Custom or Default With custom

    Declaration
    public static readonly DependencyProperty ContextMenuTypeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    CornerRadiusProperty

    Identifies the CornerRadius dependency property.

    Declaration
    public static readonly DependencyProperty CornerRadiusProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    DepthAxisProperty

    Identifies the SecondaryAxis dependency property.

    Declaration
    public static readonly DependencyProperty DepthAxisProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ElementMarginProperty

    Identifies the ElementMargin dependency property.

    Declaration
    public static readonly DependencyProperty ElementMarginProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    EnableDepthAxisProperty

    Using a DependencyProperty as the backing store for EnableDepthAxis. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty EnableDepthAxisProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    EnableLazyLoadingProperty

    Declaration
    public static readonly DependencyProperty EnableLazyLoadingProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    EnableMouseDragZoomingProperty

    Identifies the LegendStyle dependency property.

    Declaration
    public static readonly DependencyProperty EnableMouseDragZoomingProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    EnableRangeSelectionProperty

    Identifies the EnableRangeSelection dependency property.

    Declaration
    public static readonly DependencyProperty EnableRangeSelectionProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    EnableZoomOnScrollProperty

    Identifies the LegendStyle dependency property.

    Declaration
    public static readonly DependencyProperty EnableZoomOnScrollProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    EndValueProperty

    Identifies the EndValue dependency property.

    Declaration
    public static readonly DependencyProperty EndValueProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    FooterProperty

    Identifies the Footer dependency property.

    Declaration
    public static readonly DependencyProperty FooterProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    GridBackgroundProperty

    Identifies the GridBackground dependency property.

    Declaration
    public static readonly DependencyProperty GridBackgroundProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    GridContentProperty

    Using a DependencyProperty as the backing store for LightContent. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty GridContentProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    GridHeaderAlignmentProperty

    Using a DependencyProperty as the backing store for GridHeaderAlignmentProperty. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty GridHeaderAlignmentProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    GridHeaderProperty

    Using a DependencyProperty as the backing store for GridHeader. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty GridHeaderProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    GridLineStrokeProperty

    Identifies the GridLineStroke dependency property.

    Declaration
    public static readonly DependencyProperty GridLineStrokeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    HeaderProperty

    Identifies the Header dependency property.

    Declaration
    public static readonly DependencyProperty HeaderProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    HoldUpdateProperty

    Identifies the HoldUpdateProperty dependency property.

    Declaration
    public static readonly DependencyProperty HoldUpdateProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsBeginInitIsActiveProperty

    Identifies the IsBeginInitIsActive dependency property.

    Declaration
    public static readonly DependencyProperty IsBeginInitIsActiveProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsClusteredProperty

    Identifies the IsClustered dependency property.

    Declaration
    public static readonly DependencyProperty IsClusteredProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsContextMenuEnabledProperty

    Identifies the IsContextMenuEnabled dependency property.

    Declaration
    public static readonly DependencyProperty IsContextMenuEnabledProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsRetainAxisPositionProperty

    Identifies the OriginLineStroke dependency property.

    Declaration
    public static readonly DependencyProperty IsRetainAxisPositionProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    LegendProperty

    Identifies the Legend dependency property.

    Declaration
    public static readonly DependencyProperty LegendProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    LegendStyleProperty

    Identifies the LegendStyle dependency property.

    Declaration
    public static readonly DependencyProperty LegendStyleProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    LightContentProperty

    Using a DependencyProperty as the backing store for LightContent. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty LightContentProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    LineStrokeProperty

    Identifies the LineStroke dependency property.

    Declaration
    public static readonly DependencyProperty LineStrokeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    LowerRangeLabelProperty

    Identifies the LowerRangeLabel dependency property.

    Declaration
    public static readonly DependencyProperty LowerRangeLabelProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    OriginLineStrokeProperty

    Identifies the OriginLineStroke dependency property.

    Declaration
    public static readonly DependencyProperty OriginLineStrokeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    PaletteProperty

    Using a DependencyProperty as the backing store for Palette. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty PaletteProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    PrimaryAxisProperty

    Identifies the PrimaryAxis dependency property.

    Declaration
    public static readonly DependencyProperty PrimaryAxisProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    PrimaryAxisStyleProperty

    Identifies the PrimaryAxisStyle dependency property.

    Declaration
    public static readonly DependencyProperty PrimaryAxisStyleProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    RangeSelectionOrientationProperty

    Using a DependencyProperty as the backing store for InteractiveCursorMargin. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty RangeSelectionOrientationProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SecondaryAxisProperty

    Identifies the SecondaryAxis dependency property.

    Declaration
    public static readonly DependencyProperty SecondaryAxisProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SecondaryAxisStyleProperty

    Identifies the SecondaryAxisStyle dependency property.

    Declaration
    public static readonly DependencyProperty SecondaryAxisStyleProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SelectionStrokeProperty

    Identifies the SelectionStroke dependency property.

    Declaration
    public static readonly DependencyProperty SelectionStrokeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SeriesStyleProperty

    Identifies the SeriesStyle dependency property.

    Declaration
    public static readonly DependencyProperty SeriesStyleProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ShowGridLinesProperty

    Identifies the ShowGridLines dependency property.

    Declaration
    public static readonly DependencyProperty ShowGridLinesProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ShowLegendProperty

    Using a DependencyProperty as the backing store for ShowLegend. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty ShowLegendProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ShowMajorGridLinesProperty

    Identifies the ShowMajorGridLines dependency property.

    Declaration
    public static readonly DependencyProperty ShowMajorGridLinesProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ShowOriginLineProperty

    Identifies the ShowOriginLine dependency property.

    Declaration
    public static readonly DependencyProperty ShowOriginLineProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SideBySideSeriesPlacementProperty

    Identifies the SideBySideSeriesPlacement dependency property.

    Declaration
    public static readonly DependencyProperty SideBySideSeriesPlacementProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SmallGridLineStrokeProperty

    Identifies the SmallGridLineStroke dependency property.

    Declaration
    public static readonly DependencyProperty SmallGridLineStrokeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SplitterColorProperty

    Identifies the SplitterColor dependency property.

    Declaration
    public static readonly DependencyProperty SplitterColorProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SplitterPositionProperty

    Identifies the SplitterPosition dependency property.

    Declaration
    public static readonly DependencyProperty SplitterPositionProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SplitterStrokeProperty

    Identifies the SplitterStroke dependency property.

    Declaration
    public static readonly DependencyProperty SplitterStrokeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SplitterVisiblityProperty

    Identifies the SplitterVisiblity dependency property.

    Declaration
    public static readonly DependencyProperty SplitterVisiblityProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SplitterWidthProperty

    Identifies the SplitterWidth dependency property.

    Declaration
    public static readonly DependencyProperty SplitterWidthProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    StartValueProperty

    Identifies the StartValue dependency property.

    Declaration
    public static readonly DependencyProperty StartValueProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    StrokePaletteProperty

    Using a DependencyProperty as the backing store for StrokePalette. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty StrokePaletteProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    UpperRangeLabelProperty

    Identifies the UpperRangeLabel dependency property.

    Declaration
    public static readonly DependencyProperty UpperRangeLabelProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    View3DModeProperty

    Identifies the View3DMode dependency property.

    Declaration
    public static readonly DependencyProperty View3DModeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    WatermarkProperty

    Identifies the Watermark dependency property.

    Declaration
    public static readonly DependencyProperty WatermarkProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ZoomAllAxesProperty

    Identifies the ZoomAllAxes dependency property.

    Declaration
    public static readonly DependencyProperty ZoomAllAxesProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ZoomedXRangeProperty

    Identifies the ZoomedXRange dependency property.

    Declaration
    public static readonly DependencyProperty ZoomedXRangeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ZoomedYRangeProperty

    Identifies the ZoomedYRange dependency property.

    Declaration
    public static readonly DependencyProperty ZoomedYRangeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ZoomSwitchedProperty

    Identifies the ZoomSwitched dependency property.

    Declaration
    public static readonly DependencyProperty ZoomSwitchedProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Properties

    Allow3DRotate

    Get and set the Allow3DRotate

    Declaration
    public bool Allow3DRotate { get; set; }
    Property Value
    Type Description
    System.Boolean

    AllowSegmentDragDrop

    get and set AllowSegmentDragDrop property

    Declaration
    public bool AllowSegmentDragDrop { get; set; }
    Property Value
    Type Description
    System.Boolean

    AlternatingFillDirection

    Gets or sets alternating grid lines direction.

    Declaration
    public Orientation AlternatingFillDirection { get; set; }
    Property Value
    Type Description
    System.Windows.Controls.Orientation

    The alternating fill mode can be set from one of values from System.Windows.Controls.Orientation enumeration.

    Remarks

    In some cases it is required to fill charts area's background with repeating lines. This property allows to set alternating lines direction.

    Examples

    C#:

    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding new area.
    chart.Areas.Add(new ChartArea());
    //Creating chart data points.
    ChartListData data = new ChartListData();
    data.Add(new ChartPoint(1, 1));
    data.Add(new ChartPoint(2, 2));
    data.Add(new ChartPoint(3, 3));
    data.Add(new ChartPoint(4, 4));
    data.Add(new ChartPoint(5, 5));
    //Adding new series.
    chart.Areas[0].Series.Add(new ChartSeries());
    //Assigning data to series.
    chart.Areas[0].Series[0].Data = data;
    //Setting alternating grid background brush.
    chart.Areas[0].AlternatingGridBackground = Brushes.White;
    //Setting alternating grid background direction mode.
    chart.Areas[0].AlternatingFillDirection = Orientation.Vertical;
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea AlternatingGridBackground="White"
    AlternatingFillDirection="Vertical">
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4 5 5 "/>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    AlternatingFillMode

    Gets or sets fill mode for alternating grid lines.

    Declaration
    public AlternatingFillMode AlternatingFillMode { get; set; }
    Property Value
    Type Description
    AlternatingFillMode

    The alternating fill mode can be set from one of values from AlternatingFillMode enumeration.

    Remarks

    In some cases it is required to fill charts area's background with repeating lines. This property allows to set alternating lines fill mode.

    Examples

    C#:

    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding new area.
    chart.Areas.Add(new ChartArea());
    //Creating chart data points.
    ChartListData data = new ChartListData();
    data.Add(new ChartPoint(1, 1));
    data.Add(new ChartPoint(2, 2));
    data.Add(new ChartPoint(3, 3));
    data.Add(new ChartPoint(4, 4));
    data.Add(new ChartPoint(5, 5));
    //Adding new series.
    chart.Areas[0].Series.Add(new ChartSeries());
    //Assigning data to series.
    chart.Areas[0].Series[0].Data = data;
    //Setting alternating grid background brush.
    chart.Areas[0].AlternatingGridBackground = Brushes.White;
    //Setting alternating grid background fill mode.
    chart.Areas[0].AlternatingFillMode = AlternatingFillMode.Odd;
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea AlternatingGridBackground="White"
    AlternatingFillMode="Odd">
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4 5 5 "/>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    AlternatingGridBackground

    Gets or sets alternating grid lines brush.

    Declaration
    public Brush AlternatingGridBackground { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    Alternating grid background.

    Remarks

    In some cases it is required to fill charts area's background with repeating lines. This property allows to set alternating lines brush.

    Examples

    C#:

    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding new area.
    chart.Areas.Add(new ChartArea());
    //Creating chart data points.
    ChartListData data = new ChartListData();
    data.Add(new ChartPoint(1, 1));
    data.Add(new ChartPoint(2, 2));
    data.Add(new ChartPoint(3, 3));
    data.Add(new ChartPoint(4, 4));
    data.Add(new ChartPoint(5, 5));
    //Adding new series.
    chart.Areas[0].Series.Add(new ChartSeries());
    //Assigning data to series.
    chart.Areas[0].Series[0].Data = data;
    //Setting alternating grid background brush.
    chart.Areas[0].AlternatingGridBackground = Brushes.White;
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <!--Creates new chart area and assigns its AlternatingGridBackground
    property-->
    <syncfusion:ChartArea AlternatingGridBackground="White">
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4 5 5 "/>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    Axes

    Gets the chart area axes collection.

    Declaration
    public ChartAxesCollection Axes { get; }
    Property Value
    Type Description
    Syncfusion.Windows.Chart.ChartAxesCollection

    By default property contains 2 axes: PrimaryAxis and SecondaryAxis.

    Remarks

    This property should be used for multiple axes scenario.

    See Also
    XAxis
    YAxis

    AxesThickness

    Gets or sets the axes thickness.

    Declaration
    public Thickness AxesThickness { get; set; }
    Property Value
    Type Description
    System.Windows.Thickness

    The axes thickness.

    Camera3D

    Gets or sets the camera3 D.

    Declaration
    public Camera Camera3D { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Media3D.Camera

    The camera3 D.

    CameraController

    Gets or sets the camera controller.

    Declaration
    public ChartTargetCameraController CameraController { get; set; }
    Property Value
    Type Description
    Syncfusion.Windows.Chart.ChartTargetCameraController

    The camera controller.

    Chart3DSettings

    Gets or sets the chart3D settings.

    Declaration
    public Chart3D Chart3DSettings { get; set; }
    Property Value
    Type Description
    Chart3D

    The chart3D settings.

    ChartAreaAdornerLayer

    Gets the chart area adorner layer.

    Declaration
    public AdornerLayer ChartAreaAdornerLayer { get; }
    Property Value
    Type Description
    System.Windows.Documents.AdornerLayer

    The chart area adorner layer.

    ColorModel

    Gets the color model of area.

    Declaration
    public ChartStyleModel ColorModel { get; set; }
    Property Value
    Type Description
    Syncfusion.Windows.Chart.ChartStyleModel

    The color model.

    See Also
    Syncfusion.Windows.Chart.ChartStyleModel

    ContextMenuType

    Gets or sets the LegendStyle value.

    Declaration
    public ContextMenuTypes ContextMenuType { get; set; }
    Property Value
    Type Description
    ContextMenuTypes

    The LegendStyle.

    CornerRadius

    Gets or sets corner radius of area's border. This is a dependency property.

    Declaration
    public CornerRadius CornerRadius { get; set; }
    Property Value
    Type Description
    System.Windows.CornerRadius
    Examples

    C#:

    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding new area.
    chart.Areas.Add(new ChartArea());
    //Creating chart data points.
    ChartListData data = new ChartListData();
    data.Add(new ChartPoint(1, 1));
    data.Add(new ChartPoint(2, 2));
    data.Add(new ChartPoint(3, 3));
    data.Add(new ChartPoint(4, 4));
    data.Add(new ChartPoint(5, 5));
    //Adding new series.
    chart.Areas[0].Series.Add(new ChartSeries());
    //Assigning data to series.
    chart.Areas[0].Series[0].Data = data;
    //Setting corner radius of area.
    chart.Areas[0].CornerRadius = new CornerRadius(10, 5, 10, 5);
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea CornerRadius="10,5,10,5">
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4 5 5 "/>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    CustomContextMenuItems

    Declaration
    public ObservableCollection<MenuItem> CustomContextMenuItems { get; set; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<System.Windows.Controls.MenuItem>

    DepthAxis

    Gets or sets the Depth(Z) axis.This is a dependency property.

    Declaration
    public ChartAxis DepthAxis { get; set; }
    Property Value
    Type Description
    ChartAxis

    The depth axis.

    Remarks

    For 3D Chart, chart area has three axes: Primary (X-axis with System.Windows.Controls.Orientation.Horizontal orientation) , Secondary (Y-Axis with System.Windows.Controls.Orientation.Vertical orientation) and Depth (Z-Axis) axes.

    See Also
    ChartAxis
    Axes

    DisableIsIndexedForOLAP

    Identifies the DisableIsIndexedForOLAP

    Declaration
    protected bool DisableIsIndexedForOLAP { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if [disable is indexed for OLAP]; otherwise, false.

    ElementMargin

    Gets or sets the element margin. This is a dependency property.

    Declaration
    public Thickness ElementMargin { get; set; }
    Property Value
    Type Description
    System.Windows.Thickness

    The element margin.

    EnableDepthAxis

    Get and set EnableDepthAxis property

    Declaration
    public bool EnableDepthAxis { get; set; }
    Property Value
    Type Description
    System.Boolean

    EnableLazyLoading

    Gets or sets a value indicating whether [enable lazy loading].

    Declaration
    public bool EnableLazyLoading { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if [enable lazy loading]; otherwise, false.

    EnableMouseDragZooming

    Gets or sets the EnableZoomOnScroll value.

    Declaration
    public bool EnableMouseDragZooming { get; set; }
    Property Value
    Type Description
    System.Boolean

    The LegendStyle.

    EnableRangeSelection

    Gets or sets the LegendStyle value.

    Declaration
    public bool EnableRangeSelection { get; set; }
    Property Value
    Type Description
    System.Boolean

    The LegendStyle.

    EnableZoomOnScroll

    Gets or sets the EnableZoomOnScroll value.

    Declaration
    public bool EnableZoomOnScroll { get; set; }
    Property Value
    Type Description
    System.Boolean

    The LegendStyle.

    EndValue

    Gets or sets the LegendStyle value.

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

    The LegendStyle.

    Footer

    Gets or sets the footer of chart area. This is a dependency property.

    Declaration
    public object Footer { get; set; }
    Property Value
    Type Description
    System.Object

    GridBackground

    Gets or sets the grid background. This is a dependency property.

    Declaration
    public Brush GridBackground { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    The grid System.Windows.Media.Brush.

    Remarks

    Represents the brush that fills area's grid background.

    Examples

    C#:

    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding new area.
    chart.Areas.Add(new ChartArea());
    //Creating chart data points.
    ChartListData data = new ChartListData();
    data.Add(new ChartPoint(1, 1));
    data.Add(new ChartPoint(2, 2));
    data.Add(new ChartPoint(3, 3));
    data.Add(new ChartPoint(4, 4));
    data.Add(new ChartPoint(5, 5));
    //Adding new series.
    chart.Areas[0].Series.Add(new ChartSeries());
    //Assigning data to series.
    chart.Areas[0].Series[0].Data = data;
    //Assigning a new background brush.
    chart.Areas[0].GridBackground = new LinearGradientBrush(Colors.White, Colors.Red, new Point(0, 0), new Point(1, 1));
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Width="300" Height="300">
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:Chart.Resources>
    <LinearGradientBrush x:Key="backgroundBrush">
    <GradientStop Color="White" Offset="0"/>
    <GradientStop Color="LightCoral" Offset="0.6"/>
    <GradientStop Color="White" Offset="1"/>
    </LinearGradientBrush>
    </syncfusion:Chart.Resources>
    <syncfusion:ChartArea GridBackground="{StaticResource backgroundBrush}">
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4 5 5 "/>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    GridContent

    Gets or sets the content of the grid.

    Declaration
    public Model3D GridContent { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Media3D.Model3D

    The content of the grid.

    GridHeader

    Get and set GridHeaderProperty

    Declaration
    public object GridHeader { get; set; }
    Property Value
    Type Description
    System.Object

    GridHeaderAlignment

    Get and Set GridHeaderAlignmentProperty

    Declaration
    public HorizontalAlignment GridHeaderAlignment { get; set; }
    Property Value
    Type Description
    System.Windows.HorizontalAlignment

    Header

    Gets or sets header of chart. This is a dependency property.

    Declaration
    public object Header { get; set; }
    Property Value
    Type Description
    System.Object
    Remarks

    Header is used to mark area.

    Examples

    C#:

    //Creating new chart instance.
    chart chart = new chart();
    //Adding new area.
    chart.areas.add(new chartarea());
    //Creating chart data points.
    chartlistdata data = new chartlistdata();
    data.add(new chartpoint(1, 1));
    data.add(new chartpoint(2, 2));
    data.add(new chartpoint(3, 3));
    data.add(new chartpoint(4, 4));
    data.add(new chartpoint(5, 5));
    //Adding new series.
    chart.areas[0].series.add(new chartseries());
    //Assigning data to series.
    chart.areas[0].series[0].data = data;
    //Setting corner radius of area.
    chart.areas[0].Header = "Main area";
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea Header="Main Area">
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4 5 5 "/>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    HoldUpdate

    Get and Set HoldUpdateProperty

    Declaration
    public bool HoldUpdate { get; set; }
    Property Value
    Type Description
    System.Boolean

    InteractiveCursors

    Gets or sets the interactive cursors.

    Declaration
    public InteractiveCursorCollection InteractiveCursors { get; set; }
    Property Value
    Type Description
    InteractiveCursorCollection

    The interactive cursors.

    IsBeginInitIsActive

    Get and set IsBeginInitIsActiveProperty

    Declaration
    public bool IsBeginInitIsActive { get; set; }
    Property Value
    Type Description
    System.Boolean

    IsClustered

    Gets or sets the IsClustered value.

    Declaration
    public bool IsClustered { get; set; }
    Property Value
    Type Description
    System.Boolean

    The IsClustered.

    IsContextMenuEnabled

    Gets or sets a value indicating whether default context menu should be added to ChartArea.

    Declaration
    public bool IsContextMenuEnabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if ChartArea has a default context menu enabled; otherwise, false.

    IsRetainAxisPosition

    Gets or sets a value indicating whether this instance is retain axis position.

    Declaration
    public bool IsRetainAxisPosition { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is retain axis position; otherwise, false.

    Legend

    Gets or sets ChartLegend for ChartArea. This is a dependency property.

    Declaration
    public ChartLegend Legend { get; set; }
    Property Value
    Type Description
    ChartLegend

    Instance of ChartLegend should be assigned.

    Remarks

    Chart legend is used to give user more idea about what he sees on the chart.

    ChartLegend values are displaying series' labels except of Pie, Doughnut, Funnel and Pyramid chart types. For such specific types legend is displaying segments of series.

    Examples

    C#:

    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding new area.
    chart.Areas.Add(new ChartArea());
    //Creating chart data points.
    ChartListData data = new ChartListData();
    data.Add(new ChartPoint(1, 1));
    data.Add(new ChartPoint(2, 2));
    data.Add(new ChartPoint(3, 3));
    data.Add(new ChartPoint(4, 4));
    data.Add(new ChartPoint(5, 5));
    //Adding new series.
    chart.Areas[0].Series.Add(new ChartSeries());
    //Assigning data to series.
    chart.Areas[0].Series[0].Data = data;
    //Assigning legend to area.
    chart.Areas[0].Legend = new ChartLegend();
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Width="300" Height="300">
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4 5 5 "/>
    <syncfusion:ChartArea.Legend>
    <syncfusion:ChartLegend/>
    </syncfusion:ChartArea.Legend>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    LegendStyle

    Gets or sets the LegendStyle value.

    Declaration
    public Style LegendStyle { get; set; }
    Property Value
    Type Description
    System.Windows.Style

    The LegendStyle.

    LightContent

    Gets or sets the content of the light.

    Declaration
    public Model3D LightContent { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Media3D.Model3D

    The content of the light.

    LineStroke

    Gets or sets the LegendStyle value.

    Declaration
    public Brush LineStroke { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    The LegendStyle.

    LogicalChildren

    Gets an enumerator for logical child elements of this element.

    Declaration
    protected override IEnumerator LogicalChildren { get; }
    Property Value
    Type Description
    System.Collections.IEnumerator

    LowerRangeLabel

    Get and Set LowerRangeLabelProperty

    Declaration
    public object LowerRangeLabel { get; set; }
    Property Value
    Type Description
    System.Object

    Palette

    Get and Set PaletteProperty

    Declaration
    public ChartColorPalette Palette { get; set; }
    Property Value
    Type Description
    ChartColorPalette

    PrimaryAxis

    Gets or sets the primary axis. This is a dependency property.

    Declaration
    public ChartAxis PrimaryAxis { get; set; }
    Property Value
    Type Description
    ChartAxis

    The primary axis.

    Remarks

    By default, chart area has two axes: Primary (X-axis with System.Windows.Controls.Orientation.Horizontal orientation) and Secondary (Y-Axis with System.Windows.Controls.Orientation.Vertical orientation) axes.

    See Also
    ChartAxis
    Axes

    PrimaryAxisStyle

    Gets or sets the LegendStyle value.

    Declaration
    public Style PrimaryAxisStyle { get; set; }
    Property Value
    Type Description
    System.Windows.Style

    The LegendStyle.

    RangeSelectionOrientation

    Get and Set RangeSelectionOrientationProperty

    Declaration
    public Orientation RangeSelectionOrientation { get; set; }
    Property Value
    Type Description
    System.Windows.Controls.Orientation

    SecondaryAxis

    Gets or sets the secondary axis.This is a dependency property.

    Declaration
    public ChartAxis SecondaryAxis { get; set; }
    Property Value
    Type Description
    ChartAxis

    The secondary axis.

    Remarks

    By default, chart area has two axes: Primary (X-axis with System.Windows.Controls.Orientation.Horizontal orientation) and Secondary (Y-Axis with System.Windows.Controls.Orientation.Vertical orientation) axes.

    See Also
    ChartAxis
    Axes

    SecondaryAxisStyle

    Gets or sets the LegendStyle value.

    Declaration
    public Style SecondaryAxisStyle { get; set; }
    Property Value
    Type Description
    System.Windows.Style

    The LegendStyle.

    SelectionStroke

    Gets or sets the LegendStyle value.

    Declaration
    public Brush SelectionStroke { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    The LegendStyle.

    Series

    Gets or sets the collection of ChartSeries.

    Declaration
    public ChartSeriesCollection Series { get; set; }
    Property Value
    Type Description
    Syncfusion.Windows.Chart.ChartSeriesCollection

    The series.

    Examples

    XAML:

    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
       Width="300" Height="300">
    <syncfusion:Chart xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
       <syncfusion:ChartArea>
           <syncfusion:ChartArea.Series>
               <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4 5 5"/>
           </syncfusion:ChartArea.Series>
       </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    SeriesStyle

    Gets or sets the LegendStyle value.

    Declaration
    public Style SeriesStyle { get; set; }
    Property Value
    Type Description
    System.Windows.Style

    The LegendStyle.

    ShowLegend

    Get and Set ShowLegendProperty

    Declaration
    public bool ShowLegend { get; set; }
    Property Value
    Type Description
    System.Boolean

    SideBySideSeriesPlacement

    Gets or sets a value indicating whether ChartSeries added to area should be plotted side-by-side.

    Declaration
    public bool SideBySideSeriesPlacement { get; set; }
    Property Value
    Type Description
    System.Boolean

    The SideBySideSeriesPlacement.

    Remarks

    Gets or sets the SideBySideSeriesPlacement. This is a dependency property. Property affects side-by-side chart types only.

    SplitterColor

    Gets or sets the color of the splitter.

    Declaration
    public Brush SplitterColor { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    The color of the splitter.

    SplitterPosition

    Gets or sets the LegendStyle value.

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

    The LegendStyle.

    SplitterStroke

    Gets or sets the splitter stroke.

    Declaration
    public Brush SplitterStroke { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    The splitter stroke.

    SplitterVisiblity

    Get and Set SplitterVisiblityProperty

    Declaration
    public SpliterVisibility SplitterVisiblity { get; set; }
    Property Value
    Type Description
    SpliterVisibility

    SplitterWidth

    Get and Set SplitterWidthProperty

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

    StartValue

    Gets or sets the LegendStyle value.

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

    The LegendStyle.

    StrokePalette

    Get and Set StrokePaletteProperty

    Declaration
    public ChartColorPalette StrokePalette { get; set; }
    Property Value
    Type Description
    ChartColorPalette

    UpperRangeLabel

    Get and Set UpperRangelabel

    Declaration
    public object UpperRangeLabel { get; set; }
    Property Value
    Type Description
    System.Object

    View3DMode

    Gets or sets a value indicating whether [view3 D mode].

    Declaration
    public bool View3DMode { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if [view3 D mode]; otherwise, false.

    VisibleSeries

    Gets visible series of chart area.

    Declaration
    public VisibleSeriesCollection VisibleSeries { get; }
    Property Value
    Type Description
    VisibleSeriesCollection
    Remarks

    This property is intended to be used for custom ChartArea templates.

    Watermark

    Gets or sets the watermark for chart.

    Declaration
    public Brush Watermark { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    The Watermark.

    ZoomAllAxes

    Gets or sets a value indicating whether all axes should be zoomed in zooming mode. This is a dependency property.

    Declaration
    public bool ZoomAllAxes { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if all area's axes should be zoomed. All IsZoomable properties are ignored.

    Remarks

    This property is being changed automatically by WPF Chart zooming system.

    ZoomedXRange

    Get and Set ZoomedXRangeProperty

    Declaration
    public DoubleRange ZoomedXRange { get; set; }
    Property Value
    Type Description
    DoubleRange

    ZoomedYRange

    Get and Set ZoomedYRangeProperty

    Declaration
    public DoubleRange ZoomedYRange { get; set; }
    Property Value
    Type Description
    DoubleRange

    ZoomInCoefficient

    Get and Set ZoomInCoefficient

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

    ZoomOutCoefficient

    Get and Set ZoomOutCoefficient

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

    ZoomSwitched

    Gets a value indicating whether chart area is currently zooming.

    Declaration
    public bool ZoomSwitched { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    BeginInit()

    Starts the initialization process for this element.

    Declaration
    public void BeginInit()

    BoundsToDataSource(Rect, ChartSeries)

    Get the collection of underlying objects which exist inside given Rect region

    Declaration
    public ObservableCollection<object> BoundsToDataSource(Rect rect, ChartSeries series)
    Parameters
    Type Name Description
    System.Windows.Rect rect

    Bounds Region

    ChartSeries series

    Chart Series

    Returns
    Type Description
    System.Collections.ObjectModel.ObservableCollection<System.Object>

    Collection of underlying objects

    BoundsToPoints(Rect, ChartSeries)

    Get the collection of ChartPoints objects which exist inside given Rect region

    Declaration
    public ObservableCollection<IChartDataPoint> BoundsToPoints(Rect rect, ChartSeries series)
    Parameters
    Type Name Description
    System.Windows.Rect rect

    Rect

    ChartSeries series

    Chart Series

    Returns
    Type Description
    System.Collections.ObjectModel.ObservableCollection<IChartDataPoint>

    Collection of ChartPoints

    Clone(ChartAxis, ChartAxis)

    Method for hooking the Chartscrolling event

    Declaration
    public void Clone(ChartAxis axis, ChartAxis parentAxis)
    Parameters
    Type Name Description
    ChartAxis axis
    ChartAxis parentAxis

    ConvertBoundsToAxesRangeValues(ChartAxis, ChartAxis, Rect)

    Convert the Mouse co-oridianate points to ChartAxis range values.

    Declaration
    public Rect ConvertBoundsToAxesRangeValues(ChartAxis xAxis, ChartAxis yAxis, Rect actualRect)
    Parameters
    Type Name Description
    ChartAxis xAxis

    Chart Series X-Axis

    ChartAxis yAxis

    Chart Series Y-Axis

    System.Windows.Rect actualRect

    Acutal Mouse rect Points

    Returns
    Type Description
    System.Windows.Rect

    Range Rect value

    Deserialize(String)

    Converts propert xaml string into ChartArea

    Declaration
    public object Deserialize(string xamlString)
    Parameters
    Type Name Description
    System.String xamlString
    Returns
    Type Description
    System.Object

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public virtual void Dispose()

    EndInit()

    Indicates that the initialization process for the element is complete.

    Declaration
    public void EndInit()
    Exceptions
    Type Condition
    System.InvalidOperationException

    System.Windows.FrameworkElement.EndInit was called without System.Windows.FrameworkElement.BeginInit having previously been called on the element.

    GetGridLineStroke(ChartAxis)

    Gets the grid line stroke attached property.

    Declaration
    public static Pen GetGridLineStroke(ChartAxis axis)
    Parameters
    Type Name Description
    ChartAxis axis

    The ChartAxis.

    Returns
    Type Description
    System.Windows.Media.Pen

    Grid line stroke.

    GetOriginLineStroke(ChartAxis)

    Gets the origin line stroke attached property.

    Declaration
    public static Pen GetOriginLineStroke(ChartAxis axis)
    Parameters
    Type Name Description
    ChartAxis axis

    The ChartAxis.

    Returns
    Type Description
    System.Windows.Media.Pen

    The OriginLineStroke pen

    GetPercentageStackInfo(ChartSeries, ChartIndexedDataPoint)

    Gets the percentage stack info.

    Declaration
    public DoubleRange GetPercentageStackInfo(ChartSeries series, ChartIndexedDataPoint point)
    Parameters
    Type Name Description
    ChartSeries series

    The series.

    Syncfusion.Windows.Chart.ChartIndexedDataPoint point

    The point.

    Returns
    Type Description
    DoubleRange

    The double Percentage Stack Info

    Remarks

    Used to calculate ChartStackingColumnSegment column shift.

    GetShowGridLines(ChartAxis)

    Gets the value of show grid lines attached property.

    Declaration
    public static bool GetShowGridLines(ChartAxis axis)
    Parameters
    Type Name Description
    ChartAxis axis

    The ChartAxis.

    Returns
    Type Description
    System.Boolean

    The grid line stroke.

    GetShowMajorGridLines(ChartAxis)

    return bool value for check MajorGridlines showing or not

    Declaration
    public static bool GetShowMajorGridLines(ChartAxis axis)
    Parameters
    Type Name Description
    ChartAxis axis
    Returns
    Type Description
    System.Boolean

    GetShowOriginLine(ChartAxis)

    Gets the show origin line attached property.

    Declaration
    public static bool GetShowOriginLine(ChartAxis axis)
    Parameters
    Type Name Description
    ChartAxis axis

    The ChartAxis.

    Returns
    Type Description
    System.Boolean

    Bool value to show grid lines

    GetSideBySideInfo(ChartSeries)

    Returns the value of side by side displacement.

    Declaration
    public DoubleRange GetSideBySideInfo(ChartSeries series)
    Parameters
    Type Name Description
    ChartSeries series

    The series.

    Returns
    Type Description
    DoubleRange

    The Doublerange Side by side Info

    GetSmallGridLineStroke(ChartAxis)

    Method for GetSmallGridLineStroke

    Declaration
    public static Pen GetSmallGridLineStroke(ChartAxis axis)
    Parameters
    Type Name Description
    ChartAxis axis
    Returns
    Type Description
    System.Windows.Media.Pen
    Exceptions
    Type Condition
    System.ArgumentNullException

    GetStackInfo(ChartSeries, Double, Nullable<Boolean>)

    Return double value Based on given series collection

    Declaration
    public double GetStackInfo(ChartSeries series, double position, bool? forPositive)
    Parameters
    Type Name Description
    ChartSeries series
    System.Double position
    System.Nullable<System.Boolean> forPositive
    Returns
    Type Description
    System.Double

    GetStackInfo(ChartSeries, Int32, Nullable<Boolean>)

    This method is used when series are rendered stacked.

    Declaration
    public double GetStackInfo(ChartSeries series, int position, bool? forPositive)
    Parameters
    Type Name Description
    ChartSeries series

    The series.

    System.Int32 position

    The position.

    System.Nullable<System.Boolean> forPositive

    Specify null to stack all series in one stack. True to return the stack info for just the positive series. False to return the stack info for just the negative series.

    Returns
    Type Description
    System.Double

    The value returned is a cumulative value of Y from all series that are below the series passed in the contained Series.

    GetStackingArea100Info(ChartSeries, Double, Nullable<Boolean>, Int32)

    This method is used when series are rendered stacked.

    Declaration
    public double GetStackingArea100Info(ChartSeries series, double position, bool? forPositive, int value)
    Parameters
    Type Name Description
    ChartSeries series

    The series.

    System.Double position

    The position.

    System.Nullable<System.Boolean> forPositive

    Specify null to stack all series in one stack. True to return the stack info for just the positive series. False to return the stack info for just the negative series.

    System.Int32 value

    The series.

    Returns
    Type Description
    System.Double

    The value returned is a cumulative value of Y from all series that are below the series passed in the contained Series.

    OnApplyTemplate()

    Invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.

    Declaration
    public override void OnApplyTemplate()
    See Also
    ChartArea

    OnCreateAutomationPeer()

    Declaration
    protected override AutomationPeer OnCreateAutomationPeer()
    Returns
    Type Description
    System.Windows.Automation.Peers.AutomationPeer

    OnEnabelSeriesInterativeChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Called when EnableRangeSelection property changed.

    Declaration
    public static void OnEnabelSeriesInterativeChanged(DependencyObject d, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject d
    System.Windows.DependencyPropertyChangedEventArgs args

    OnEndRangeChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Called when EndValue property changed.

    Declaration
    public static void OnEndRangeChanged(DependencyObject d, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject d
    System.Windows.DependencyPropertyChangedEventArgs args

    OnIsClusterChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Called when IsCluster property changed.

    Declaration
    public static void OnIsClusterChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj
    System.Windows.DependencyPropertyChangedEventArgs args

    OnLineStrokeChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Called when LineStroke property changed.

    Declaration
    public static void OnLineStrokeChanged(DependencyObject d, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject d
    System.Windows.DependencyPropertyChangedEventArgs args

    OnMouseDoubleClick(MouseButtonEventArgs)

    Raises the System.Windows.Controls.Control.MouseDoubleClick routed event.

    Declaration
    protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The event data.

    OnMouseDown(MouseButtonEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.MouseDown�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnMouseDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs that contains the event data. This event data reports details about the mouse button that was pressed and the handled state.

    OnMouseLeave(MouseEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.MouseDown�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnMouseLeave(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    The System.Windows.Input.MouseButtonEventArgs that contains the event data. This event data reports details about the mouse was left and the handled state.

    OnMouseLeftButtonDown(MouseButtonEventArgs)

    Invoked when an unhandled System.Windows.UIElement.MouseLeftButtonDown�routed event is raised on this element. Implement this method to add class handling for this event.

    Declaration
    protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed.

    OnMouseLeftButtonUp(MouseButtonEventArgs)

    Invoked when an unhandled System.Windows.UIElement.MouseLeftButtonUp�routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was released.

    OnMouseMove(MouseEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.MouseMove�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnMouseMove(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    The System.Windows.Input.MouseEventArgs that contains the event data.

    OnMouseRightButtonDown(MouseButtonEventArgs)

    Invoked when an unhandled System.Windows.UIElement.MouseRightButtonDown�routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnMouseRightButtonDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the right mouse button was pressed.

    OnMouseRightButtonUp(MouseButtonEventArgs)

    Invoked when an unhandled System.Windows.UIElement.MouseRightButtonUp�routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnMouseRightButtonUp(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the right mouse button was released.

    OnMouseUp(MouseButtonEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.MouseUp�routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnMouseUp(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the mouse button was released.

    OnMouseWheel(MouseWheelEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.MouseWheel�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnMouseWheel(MouseWheelEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseWheelEventArgs e

    The System.Windows.Input.MouseWheelEventArgs that contains the event data.

    OnPropertyChanged(DependencyPropertyChangedEventArgs)

    Invoked whenever the effective value of any dependency property on this System.Windows.FrameworkElement has been updated. The specific dependency property that changed is reported in the arguments parameter. Overrides System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs).

    Declaration
    protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    The event data that describes the property that changed, as well as old and new values.

    OnSelectionStrokeChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Called when SelectionStroke property changed.

    Declaration
    public static void OnSelectionStrokeChanged(DependencyObject d, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject d
    System.Windows.DependencyPropertyChangedEventArgs args

    OnSplitterPositionChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Called when SplitterPosition property changed.

    Declaration
    public static void OnSplitterPositionChanged(DependencyObject d, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject d
    System.Windows.DependencyPropertyChangedEventArgs args

    OnStartRangeChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Called when StartValue property changed.

    Declaration
    public static void OnStartRangeChanged(DependencyObject d, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject d
    System.Windows.DependencyPropertyChangedEventArgs args

    OnvalueChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Declaration
    public static void OnvalueChanged(DependencyObject d, DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyObject d
    System.Windows.DependencyPropertyChangedEventArgs args

    OnView3DModeChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises View3DModeChanged event.

    Declaration
    protected virtual void OnView3DModeChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property change details, such as old value and new value.

    PointToValue(ChartAxis, Point)

    Converts point to value.

    Declaration
    public double PointToValue(ChartAxis axis, Point point)
    Parameters
    Type Name Description
    ChartAxis axis

    The axis value.

    System.Windows.Point point

    The point.

    Returns
    Type Description
    System.Double

    The double point to value

    Serialize()

    Converts ChartArea into xaml String

    Declaration
    public string Serialize()
    Returns
    Type Description
    System.String

    SetGridLineStroke(ChartAxis, Pen)

    Sets the grid line stroke attached property.

    Declaration
    public static void SetGridLineStroke(ChartAxis axis, Pen stroke)
    Parameters
    Type Name Description
    ChartAxis axis

    The ChartAxis.

    System.Windows.Media.Pen stroke

    The grid line stroke.

    See Also
    ChartArea

    SetOriginLineStroke(ChartAxis, Pen)

    Sets the origin line stroke attached property.

    Declaration
    public static void SetOriginLineStroke(ChartAxis axis, Pen stroke)
    Parameters
    Type Name Description
    ChartAxis axis

    The ChartAxis.

    System.Windows.Media.Pen stroke

    The stroke System.Windows.Media.Pen.

    See Also
    ChartArea

    SetShowGridLines(ChartAxis, Boolean)

    Sets the show grid lines attached property.

    Declaration
    public static void SetShowGridLines(ChartAxis axis, bool show)
    Parameters
    Type Name Description
    ChartAxis axis

    The ChartAxis.

    System.Boolean show

    if set to truegrid lines will be shown for axis.

    See Also
    ChartArea

    SetShowMajorGridLines(ChartAxis, Boolean)

    Method for SetShowMajorGridLines

    Declaration
    public static void SetShowMajorGridLines(ChartAxis axis, bool show)
    Parameters
    Type Name Description
    ChartAxis axis
    System.Boolean show

    SetShowOriginLine(ChartAxis, Boolean)

    Sets the show origin line attached property.

    Declaration
    public static void SetShowOriginLine(ChartAxis axis, bool show)
    Parameters
    Type Name Description
    ChartAxis axis

    The ChartAxis.

    System.Boolean show

    if set to true Origin should be shown on axis.

    See Also
    ChartArea

    SetSmallGridLineStroke(ChartAxis, Pen)

    Sets the grid line stroke attached property.

    Declaration
    public static void SetSmallGridLineStroke(ChartAxis axis, Pen stroke)
    Parameters
    Type Name Description
    ChartAxis axis

    The ChartAxis.

    System.Windows.Media.Pen stroke

    The grid line stroke.

    See Also
    ChartArea

    UpdateChartArea()

    Updates the chart area.

    Declaration
    public void UpdateChartArea()

    ValueToPoint(ChartAxis, Double)

    Converts Value to point.

    Declaration
    public double ValueToPoint(ChartAxis axis, double value)
    Parameters
    Type Name Description
    ChartAxis axis

    The Chart axis .

    System.Double value

    The value.

    Returns
    Type Description
    System.Double

    The double value to point

    ValueToPoint(ChartSeries, ChartAxis, Double)

    Method for return double value from series,axis values

    Declaration
    public double ValueToPoint(ChartSeries series, ChartAxis axis, double value)
    Parameters
    Type Name Description
    ChartSeries series
    ChartAxis axis
    System.Double value
    Returns
    Type Description
    System.Double

    VisibileRangeForZoomAllAxis(ChartArea, ChartAxis)

    Visibiles the range for zoom all axis.

    Declaration
    public void VisibileRangeForZoomAllAxis(ChartArea chartArea, ChartAxis chartAxis)
    Parameters
    Type Name Description
    ChartArea chartArea

    The chart area.

    ChartAxis chartAxis

    The chart axis.

    See Also
    ChartArea

    Events

    ChartPanning

    Event for ChartPanning in ChartArea

    Declaration
    public event QtpChartPanningEventHandler ChartPanning
    Event Type
    Type Description
    QtpChartPanningEventHandler

    ChartScrolling

    Event for ChartScrolling in ChartArea

    Declaration
    public event QtpChartScrollPositionEventHandler ChartScrolling
    Event Type
    Type Description
    QtpChartScrollPositionEventHandler

    ChartZoomed

    event for Chartzoomed in ChartArea

    Declaration
    public event QtpChartZoomedEventHandler ChartZoomed
    Event Type
    Type Description
    QtpChartZoomedEventHandler

    ChartZoomedOut

    Event for ChartZoomedOut in ChartArea

    Declaration
    public event QtpChartZoomedOutEventHandler ChartZoomedOut
    Event Type
    Type Description
    QtpChartZoomedOutEventHandler

    ChartZoomReset

    Event for ChartZoomedReset in ChartArea

    Declaration
    public event QtpChartZoomResetEventHandler ChartZoomReset
    Event Type
    Type Description
    QtpChartZoomResetEventHandler

    ChartZoomSector

    Event for ChartZoomSector in ChartArea

    Declaration
    public event QtpChartZoomSectorEventHandler ChartZoomSector
    Event Type
    Type Description
    QtpChartZoomSectorEventHandler

    SegmentDragged

    Event for ChartArea segmentDragged

    Declaration
    public event ChartSegmentDragEventHandler SegmentDragged
    Event Type
    Type Description
    ChartSegmentDragEventHandler

    SegmentDragging

    Declaration
    public event ChartSegmentDragEventHandler SegmentDragging
    Event Type
    Type Description
    ChartSegmentDragEventHandler

    SegmentDropped

    Event for ChartArea segmentDropped

    Declaration
    public event ChartSegmentDropEventHandler SegmentDropped
    Event Type
    Type Description
    ChartSegmentDropEventHandler

    SegmentDropping

    Event for Chartarea segmentDropping

    Declaration
    public event ChartSegmentDropEventHandler SegmentDropping
    Event Type
    Type Description
    ChartSegmentDropEventHandler

    View3DModeChanged

    Event that is raised when View3DMode property is changed.

    Declaration
    public event PropertyChangedCallback View3DModeChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    Implements

    System.IDisposable
    IChartSerializer

    See Also

    Chart
    ChartArea
    ChartPoint
    ChartTypes
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved