WPF

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

    Show / Hide Table of Contents

    Class ChartAxis

    The ChartAxis class represents an axis of the ChartArea.

    Inheritance
    System.Object
    ChartAxis
    OlapChartAxis
    Implements
    System.IDisposable
    IChartSerializer
    Namespace: Syncfusion.Windows.Chart
    Assembly: Syncfusion.Chart.Wpf.dll
    Syntax
    public class ChartAxis : FrameworkContentElement, IDisposable, IChartSerializer
    Remarks

    A ChartArea contains a minimum of two axes namely primary axis and secondary axis in a Chart control. Values / data in the chart are plotted against these axes. Chart WPF also supports adding multiple axes to the chart area and the series can be drawn on any axis in the collection.

    Examples

    XAML:

    <syncfusion:ChartArea Name="area">
              <syncfusion:ChartArea.PrimaryAxis>
                  <syncfusion:ChartAxis Header="X-Axis"  />
               </syncfusion:ChartArea.PrimaryAxis>
               <syncfusion:ChartArea.SecondaryAxis>
                   <syncfusion:ChartAxis Header="Y-Axis" />                      
               </syncfusion:ChartArea.SecondaryAxis>
               <syncfusion:ChartSeries Name="series" Data=" 1 35 2 45 3 30 4 25 5
    40" />                                     </syncfusion:ChartArea> 

    XAML:

     ChartAxis axis = new ChartAxis();
                axis.Header = "X-Axis";
                chartArea.PrimaryAxis = axis;
     ChartAxis yaxis = new ChartAxis();
                yaxis.Header = "Y-Axis";
                chartArea.SecondaryAxis = yaxis;

    Constructors

    ChartAxis()

    Initializes a new instance of the ChartAxis class.

    Declaration
    public ChartAxis()

    Fields

    ActualRangeProperty

    Identifies the ActualRange dependency property.

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

    AdditionalPaddingProperty

    AdditionalPaddingProperty initialization

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

    AliasedModeRenderingProperty

    AliasedModeRenderingProperty initialize

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

    AutoScrollingDeltaProperty

    Identifies the AutoScrollingDelta dependency property.

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

    AxisLabelsPositionProperty

    Represents AxisLabelPosition

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

    AxisVisibilityProperty

    Identifies the AxisVisibility dependency property.

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

    BaseIntervalProperty

    Identifies the Interval dependency property.

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

    BreakRangeProperty

    Identifies the BreakRange dependency property.

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

    ContentPathProperty

    Identifies the ContentPath dependency property.

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

    DateTimeIntervalProperty

    Identifies the DateTimeInterval dependency property.

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

    DateTimeRangeProperty

    Identifies the DatTimeRange dependency property.

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

    DesiredIntervalsCountProperty

    Identifies the DesiredIntervalCOunt dependency property.

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

    DoubleDisplayUnitAlignmentProperty

    Identifies the DoubleDisplayUnitAlignment dependency property.

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

    DoubleDisplayUnitProperty

    Enables the DoubleDisplayUnit

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

    DoubleDisplayUnitVisibilityProperty

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

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

    EdgeLabelsDrawingModeProperty

    Identifies the EdgeLabelsDrawingMode dependency property.

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

    EdgeLabelsVisibilityModeProperty

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

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

    EnableAutoIntervalOnZoomingProperty

    Identifies the EnableAutoIntervalOnZooming dependency property.

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

    EnableAutoScrollingProperty

    Identifies the EnableAutoScrolling dependency property.

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

    EnableBreaksProperty

    Identifies the EnableBreaks dependency property.

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

    EnableLogLabelsProperty

    Identifies the EnableLogLabels dependency property.

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

    EnableSmartAxisLabelProperty

    Enables the SmartAxisLabel

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

    EnableZoomingProperty

    Identifies the EnableZooming dependency property.

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

    ForceZeroProperty

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

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

    HeaderAlignmentProperty

    Identifies the Headeralignment dependency property.

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

    HeaderPositionProperty

    Identifies the HeaderPosition dependency property.

    Declaration
    public static readonly DependencyProperty HeaderPositionProperty
    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

    HidePartialLabelProperty

    Identifies the HidePartialLabel dependency property.

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

    HideRepeatedLabelsProperty

    Hide the RepeatedLabels

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

    IgnoreRangePaddingsOnZoomProperty

    Identifies the DateTimeInterval dependency property.

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

    InteractiveCursorContentVisibilityProperty

    Identifies the InteractiveCursorContentVisibility dependency property.

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

    InteractiveCursorLabelContentProperty

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

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

    InteractiveCursorLabelLeftPositionProperty

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

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

    InteractiveCursorLabelTopPositionProperty

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

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

    InteractiveCursorLabelVisibilityProperty

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

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

    IntersectActionProperty

    Identifies the IntersectAction dependency property.

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

    IntervalOffsetProperty

    Identifies the IntervalOffset dependency property.

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

    IntervalProperty

    Identifies the Interval dependency property.

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

    IsAutoSetRangeProperty

    Identifies the IsAutoSetRange dependency property.

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

    IsFractionEnabledOnZoomProperty

    Identifies the IsFractionEnabledOnZoom dependency property.

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

    IsInversedProperty

    Identifies the IsInversed dependency property.

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

    IsLogarithmicLabelsProperty

    Identifies the IsInversed dependency property.

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

    IsOriginCenteredProperty

    Identifies the LineStroke dependency property.

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

    IsSetDataValueRangeProperty

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

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

    LabelBackgroundProperty

    Identifies the LabelBackground dependency property.

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

    LabelBorderBrushProperty

    Identifies the LabelBorderBrush dependency property.

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

    LabelBorderThicknessProperty

    Identifies the LabelBorderThickness dependency property.

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

    LabelCornerRadiusProperty

    Identifies the LabelCornerRadius dependency property.

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

    LabelDateTimeFormatProperty

    Identifies the LabelDateTimeFormat dependency property.

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

    LabelFontFamilyProperty

    Identifies the LabelFontFamily dependency property.

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

    LabelFontSizeProperty

    Identifies the LabelFontSize dependency property.

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

    LabelFontWeightProperty

    Identifies the LabelFontWeight dependency property.

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

    LabelForegroundProperty

    Identifies the LabelForeground dependency property.

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

    LabelFormatProperty

    Identifies the LabelFormat dependency property.

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

    LabelHeightProperty

    Identifies the LabelHeight dependency property.

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

    LabelHorizontalAlignmentProperty

    Identifies the LabelHorizontalAlignment dependency property.

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

    LabelLogarithmicFormatProperty

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

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

    LabelPositionProperty

    Identifies the LabelPosition dependency property.

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

    LabelRotateAngleProperty

    Identifies the LabelRotateAngle dependency property.

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

    LabelsModeProperty

    Identifies the LabelsMode dependency property.

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

    LabelsPostfixProperty

    Identifies the LabelsPostfix dependency property.

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

    LabelsPrefixProperty

    Identifies the LabelsPrefix dependency property.

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

    LabelsSourceProperty

    Identifies the LabelsSource dependency property.

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

    LabelTemplateProperty

    Identifies the LabelTemplate dependency property.

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

    LabelTimeSpanFormatProperty

    Identifies the LabelTimeSpanFormat

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

    LabelVerticalAlignmentProperty

    Identifies the LabelVerticalAlignment dependency property.

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

    LabelWidthProperty

    Identifies the LabelWidth dependency property.

    Declaration
    public static readonly DependencyProperty LabelWidthProperty
    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

    LogarithmicBaseProperty

    Identifies the LogarithmicBase dependency property.

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

    LogarithmicIntervalProperty

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

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

    LogarithmicRangeProperty

    Identifies the Logarithmic Range dependency property

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

    MarginProperty

    Identifies the Margin dependency property.

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

    MaxNumberOfLabelsProperty

    Identifies the MaxNumberOfLabels dependency property.

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

    MinimalZoomFactorProperty

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

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

    MinimumDateTimeIntervalProperty

    Identifies the MinimumDateTimeInterval dependency property.

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

    MinimumIntervalProperty

    Identifies the MinimumInterval dependency property.

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

    OpposedPositionProperty

    Identifies the OpposedPosition dependency property.

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

    OrientationProperty

    Identifies the Orientation dependency property.

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

    OriginProperty

    Identifies the Origin dependency property.

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

    PositionPathProperty

    Identifies the PositionPath dependency property.

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

    RangeCalculationModeProperty

    Identifies the RangeCalculationMode dependency property.

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

    RangePaddingProperty

    Identifies the RangePadding dependency property.

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

    RangeProperty

    Identifies the Range dependency property.

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

    SegmentPositionProperty

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

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

    ShowAllLabelsProperty

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

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

    SmallTickLinesRangeProperty

    Identifies the SmallTickLinesRange dependency property.

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

    SmallTickLineStrokeProperty

    Identifies the SmallTickLineStroke dependency property.

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

    SmallTickSizeProperty

    Identifies the SmallTickSize dependency property.

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

    SmallTicksPerIntervalProperty

    Identifies the SmallTicksPerInterval dependency property.

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

    StripLinesProperty

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

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

    TickLinesPositionProperty

    Identifies the TickLinesPosition dependency property.

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

    TickLinesRangeProperty

    Identifies the TickLinesRange dependency property.

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

    TickLineStrokeProperty

    Identifies the TickLineStroke dependency property.

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

    TickSizeProperty

    Identifies the TickSize dependency property.

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

    TimeSpanIntervalProperty

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

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

    ValueTypeProperty

    Identifies the ValueType dependency property.

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

    VisibleIntervalOffsetProperty

    Identifies the VisibleIntervalOffset dependency property.

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

    VisibleIntervalProperty

    Identifies the VisibleInterval dependency property.

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

    VisibleRangeProperty

    Identifies the VisibleRange dependency property.

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

    ZoomFactorProperty

    Identifies the ZoomFactor dependency property.

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

    ZoomPositionProperty

    Identifies the ZoomPosition dependency property.

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

    Properties

    ActualRange

    Gets the Actual Range of the Axis

    Declaration
    public DoubleRange ActualRange { get; }
    Property Value
    Type Description
    DoubleRange

    AdditionalPadding

    Property for Move ChartSegmnets

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

    AliasedModeRendering

    Handles the Axisline Rendering behavior

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

    Area

    Gets the parent area for axis.

    Declaration
    public ChartArea Area { get; }
    Property Value
    Type Description
    ChartArea
    Remarks

    This property is being set by Chart's system internally.

    AutoScrollingDelta

    Gets or sets the delta value which determines the range of value to be visible during autoscrolling

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

    AxisLabelsPosition

    Gets or Sets the AxisLabels

    Declaration
    public AxisLabels AxisLabelsPosition { get; set; }
    Property Value
    Type Description
    AxisLabels

    AxisVisibility

    Gets or sets the axis visibility.

    Declaration
    public Visibility AxisVisibility { get; set; }
    Property Value
    Type Description
    System.Windows.Visibility

    The axis visibility.

    BaseInterval

    Gets or sets the tick interval.

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

    The tick interval.

    BreakRange

    Gets or sets the BreakRange value to add the break ranges

    Declaration
    public ChartBreakRange BreakRange { get; set; }
    Property Value
    Type Description
    Syncfusion.Windows.Chart.ChartBreakRange

    ContentPath

    Gets or sets the content path for label. This is a dependency property.

    Declaration
    public string ContentPath { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    When LabelsSource property is set, content path used to determine content for label.

    CustomLabels

    Gets the custom labels for axis.

    Declaration
    public ChartAxisLabelsCollection CustomLabels { get; }
    Property Value
    Type Description
    Syncfusion.Windows.Chart.ChartAxisLabelsCollection

    The custom labels Syncfusion.Windows.Chart.ChartAxisLabelsCollection.

    Remarks

    This property allows add custom ChartAxisLabel to axis. Gridlines are being drawn for custom labels in the same way as for default labels.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Creating custom label.
    ChartAxisLabel customLabel = new ChartAxisLabel();
    customLabel.Content = "3.5";
    customLabel.Position = 3.5;
    //Adding custom label to labels collection.
    chart.Areas[0].PrimaryAxis.CustomLabels.Add(customLabel);
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Height="300" Width="300">
    <syncfusion:Chart
    xmlns:syncfusion="clr-namespace:Syncfusion.Windows.Chart;assembly=Syncfusion.Chart.Wpf">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Type="RangeColumn"
    Data="0 {7 4} 1 {8 3} 2 {9 7} 3 {3 6} 4 {1 2} 5 {8 11} 6 {3 2} 7 {8 4}"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <syncfusion:ChartAxis>
    <syncfusion:ChartAxis.CustomLabels>
    <syncfusion:ChartAxisLabel Content="3.5" Position="3.5"/>
    </syncfusion:ChartAxis.CustomLabels>
    </syncfusion:ChartAxis>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    DateTimeInterval

    Gets or sets the DateTimeInterval. This is a dependency property.

    Declaration
    public TimeSpan DateTimeInterval { get; set; }
    Property Value
    Type Description
    System.TimeSpan

    The DateTimeInterval.

    DateTimeRange

    Gets or sets the DatTimeRange. This is a dependency property. Note: The DateTimeRange will be applicable only when the Axis.IsAutoSetRange is set as false.

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

    The DatTimeRange.

    DesiredIntervalsCount

    Gets or sets the desired intervals count.

    Declaration
    public int DesiredIntervalsCount { get; set; }
    Property Value
    Type Description
    System.Int32

    The desired intervals count.

    Remarks

    Property indicates quantity of intervals that axis range should be divided by.

    DoubleDisplayUnit

    Gets or Sets the SmartAxisLabel

    Declaration
    public DoubleUnits DoubleDisplayUnit { get; set; }
    Property Value
    Type Description
    DoubleUnits

    DoubleDisplayUnitAlignment

    Get and Set DoubleDisplayUnitAlignmentProperty

    Declaration
    public ChartAlignment DoubleDisplayUnitAlignment { get; set; }
    Property Value
    Type Description
    ChartAlignment

    DoubleDisplayUnitVisibility

    Get and Set DoubleDisplayUnitVisibilityProperty

    Declaration
    public Visibility DoubleDisplayUnitVisibility { get; set; }
    Property Value
    Type Description
    System.Windows.Visibility

    EdgeLabelsDrawingMode

    Gets or sets a value indicating mode that controls partially visible labels behaviour.

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

    true if partial labels should be hidden; otherwise, false.

    EdgeLabelsVisibilityMode

    Get or Set EdgeLabelsVisibilityMode

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

    EnableAutoIntervalOnZooming

    Get and Set EnableAutoIntervalOnZoomingProperty

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

    EnableAutoScrolling

    Gets or sets the EnableAutoScrolling value to enable the auto scrolling

    Declaration
    public bool? EnableAutoScrolling { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>

    EnableBreaks

    Get and Set EnableBreaksProperty

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

    EnableLogLabels

    Gets or sets a value for EnabelLogLabels This is a dependency property.

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

    EnableSmartAxisLabel

    Gets or Sets the SmartAxisLabel

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

    EnableZooming

    Gets or sets a value indicating whether the axis can be zoomed. This is a dependency property.

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

    true if axis can be zoomed in zooming mode; otherwise, false.

    Remarks

    This property is intended to be used for specific zooming scenarios when axis' series zooming should be prevented.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Shifting series' Origin to 10 points.
    chart.Areas[0].PrimaryAxis.EnableZooming = false;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Disabling Zoomingfor the axis.-->
    <syncfusion:ChartAxis EnableZooming="false"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    See Also
    ChartAreaCommands
    SwitchZooming
    ZoomIn
    ZoomOut
    ZoomReset
    CancelZooming

    ForceZero

    Get and Set ForceZeroProperty

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

    Header

    Gets or sets the title of the axis. This is a dependency property.

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

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    ChartAxis chartXAxis = new ChartAxis();
    chartXAxis.Header = "X - Axis";
    chart.Areas[0].PrimaryAxis = chartXAxis;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting header for primary axis-->
    <syncfusion:ChartAxis Header="X - Axis"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    HeaderAlignment

    Gets or sets the header alignment. This is a dependency property.

    Declaration
    public ChartAlignment HeaderAlignment { get; set; }
    Property Value
    Type Description
    ChartAlignment

    The header alignment is one of the ChartAlignment enumeration values.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    ChartAxis chartXAxis = new ChartAxis();
    chartXAxis.Header = "X - Axis";
    //Setting header's alignment.
    chartXAxis.HeaderAlignment = ChartAlignment.Near;
    chart.Areas[0].PrimaryAxis = chartXAxis;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting header alignment for primary axis-->
    <syncfusion:ChartAxis Header="X - Axis" HeaderAlignment="Near"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    HeaderPosition

    Gets or sets the axis header position.

    Declaration
    public HeaderPositions HeaderPosition { get; set; }
    Property Value
    Type Description
    HeaderPositions

    The header position is one of the ChartAlignment enumeration values.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    ChartAxis chartXAxis = new ChartAxis();
    chartXAxis.Header = "X - Axis";
    // Setting Header Position.
    chartXAxis.HeaderPosition = AxisHeaderPosition.Far;
    chart.Areas[0].PrimaryAxis = chartXAxis;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <!--Setting Header position for primary axis labels-->
    <syncfusion:ChartArea.PrimaryAxis HeaderPosition="Far" >
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    HidePartialLabel

    Gets or sets a value indicating whether labels that appear partially should be hidden.

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

    true if partial labels should be hidden; otherwise, false.

    HideRepeatedLabels

    Gets or Sets the HideRepeatedLabels

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

    IgnoreRangePaddingsOnZoom

    Gets or sets a value indicating whether range paddings should be ignored when axis is zoomed. This is a dependency property.

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

    true if range paddings are ignored on zoom; otherwise, false.

    InteractiveCursorContentVisibility

    Gets or sets the User defined template for Vertical Label.

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

    InteractiveCursorLabelContent

    Get and Set InteractiveCursorLabelContentProperty

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

    InteractiveCursorLabelLeftPosition

    Get and Set InteractiveCursorLabelLeftPositionProperty

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

    InteractiveCursorLabelTopPosition

    Get and Set the InteractiveCursorLabelTopPosition property

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

    InteractiveCursorTemplate

    Get and Set InteractiveCursorTemplateProperty

    Declaration
    public DataTemplate InteractiveCursorTemplate { get; set; }
    Property Value
    Type Description
    System.Windows.DataTemplate

    IntersectAction

    Gets or sets the intersecting layout behaviour for the labels of axis. This is a dependency property.

    Declaration
    public ChartLabelIntersectAction IntersectAction { get; set; }
    Property Value
    Type Description
    ChartLabelIntersectAction

    One of ChartLabelIntersectAction enumeration values.

    Remarks

    Sometimes it can happen that labels are too large and intersect. Axis supports several methods to prevent intersections.

    LabelIntersectAction is supported only by rectangular coordinate system. Wrap and Rotate modes are ignored by vertical axes simply because these modes are inefficient. It is recommended to set LabelTemplate property in Wrap mode via TextWraping property of the TextBlock.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Setting intersect action for labels.
    chart.Areas[0].PrimaryAxis.IntersectAction = ChartLabelIntersectAction.Rotate;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <syncfusion:ChartAxis IntersectAction="Rotate"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    Interval

    Gets or sets the tick interval.

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

    The tick interval.

    IntervalOffset

    Gets or sets the tick offset.

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

    The tick offset.

    IsAutoSetRange

    Gets or sets a value indicating whether range that axis should display is being set automatically.

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

    true if range for axis should be set automatically; otherwise, false.

    Remarks

    Property should be used for custom range scenarios.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Disabling automatic range setting.
    chart.Areas[0].PrimaryAxis.IsAutoSetRange = False;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Disabling automatic range setting.-->
    <syncfusion:ChartAxis IsAutoSetRange="false"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    IsFractionEnabledOnZoom

    Gets or sets a value indicating whether fractional axis values are shown. This is a dependency property.

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

    true if fractional labels are enabled on zoom; otherwise, false.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Disabling fraction labels on axis.
    chart.Areas[0].PrimaryAxis.IsFractionEnabledOnZoom = False;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Disabling fraction labels on axis.-->
    <syncfusion:ChartAxis IsFractionEnabledOnZoom="False"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    IsInversed

    Gets or sets a value indicating whether the axis should be reversed. When reversed, the axis will render points from right to left if horizontal, top to bottom when vertical and clockwise if radial. This is a dependency property.

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

    true if this axis is inversed; otherwise, false.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Making primary axis inversed.
    chart.Areas[0].PrimaryAxis.IsInversed = True;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting primary axis to inversed state.-->
    <syncfusion:ChartAxis IsInversed="true"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    IsLogarithmic

    Gets the value indicating whether this axis is logarithmic. This is a dependency property.

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

    true if this instance is logarithmic; otherwise, false.

    Remarks

    Presentation of data on a logarithmic scale can be helpful when the data covers a large range of values � the logarithm reduces this to a more manageable range.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Setting primary axis to logarithmic state.
    chart.Areas[0].PrimaryAxis.IsLogarithmic = True;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="WpfApplication2.Window1"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting primary axis to logarithmic state.-->
    <syncfusion:ChartAxis IsLogarithmic="true"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    IsOriginCentered

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

    IsSetDataValueRange

    property for Check DataValueRange is set or not

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

    LabelBackground

    Gets or sets Axis labels Background. This is a dependency property.

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

    The label's background brush.

    Remarks

    Property represents label's border background.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Assigning new brush for axis labels background.
    chart.Areas[0].PrimaryAxis.LabelBackground = Brushes.Red;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting labels' background brush-->
    <syncfusion:ChartAxis LabelBackground="Red"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    LabelBorderBrush

    Gets or sets axis labels border brush. This is a dependency property.

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

    The label's border brush.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Assigning new brush for axis label's border brush.
    chart.Areas[0].PrimaryAxis.LabelBorderBrush = Brushes.Red;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting labels' border brush-->
    <syncfusion:ChartAxis LabelBorderBrush="Red"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    LabelBorderThickness

    Gets or sets axis labels border thickness. This is a dependency property.

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

    The thickness of label's border .

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Assigning new brush for axis label's border thickness.
    chart.Areas[0].PrimaryAxis.LabelBorderThickness = 3;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting labels' border thickness-->
    <syncfusion:ChartAxis LabelBorderThickness="3"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    LabelCornerRadius

    Gets or sets axis labels corner radius. This is a dependency property.

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

    The label's border corner radius.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Assigning new brush for axis label's border corner radius.
    chart.Areas[0].PrimaryAxis.LabelCornerRadius = new CornerRadius(10,3,10,2);
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting labels' border radius-->
    <syncfusion:ChartAxis LabelCornerRadius="10,3,10,2"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    LabelDateTimeFormat

    Gets or sets the label date time format. This is a dependency property.

    Declaration
    public string LabelDateTimeFormat { get; set; }
    Property Value
    Type Description
    System.String

    The strip lines.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Setting axis labels date time format.
    chart.Areas[0].PrimaryAxis.LabelDateTimeFormat = "dd/yy/mm";
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <syncfusion:ChartAxis LabelDateTimeFormat="dd/yy/mm"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    See Also
    ChartAxis
    ChartArea
    ChartSeries

    LabelFontFamily

    Gets or sets ChartAxis label font family. This is a dependency property.

    Declaration
    public FontFamily LabelFontFamily { get; set; }
    Property Value
    Type Description
    System.Windows.Media.FontFamily

    The label's font family.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Creating font family converter.
    FontFamilyConverter fontConverter = new FontFamilyConverter();
    //Assigning new font for axis labels.
    chart.Areas[0].PrimaryAxis.LabelFontFamily =
    (FontFamily)fontConverter.ConvertFromString("Times New Roman");
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting labels' font family-->
    <syncfusion:ChartAxis LabelFontFamily="Times New Roman"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    LabelFontSize

    Gets or sets a value indicating the axis labels font size. This is a dependency property.

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

    The size of the label font.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Assigning size of label's font.
    chart.Areas[0].PrimaryAxis.LabelFontSize = 20;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting labels' font size-->
    <syncfusion:ChartAxis LabelFontSize="20"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    LabelFontWeight

    Gets or sets a value indicating the axis labels font weight. This is a dependency property.

    Declaration
    public FontWeight LabelFontWeight { get; set; }
    Property Value
    Type Description
    System.Windows.FontWeight

    The label font weight.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Assigning new brush for axis labels font weight.
    chart.Areas[0].PrimaryAxis.LabelFontWeight = FontWeights.Bold;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting labels' background brush-->
    <syncfusion:ChartAxis LabelFontWeight="Bold"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    LabelForeground

    Gets or sets axis labels foreground brush. This is a dependency property.

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

    The label foreground color.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Assigning new brush for axis labels foreground.
    chart.Areas[0].PrimaryAxis.LabelBackground = Brushes.Green;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting labels' foreground brush-->
    <syncfusion:ChartAxis LabelBackground="Blue"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    LabelFormat

    Gets or sets the label format. This is a dependency property.

    Declaration
    public string LabelFormat { get; set; }
    Property Value
    Type Description
    System.String

    The strip lines.

    Remarks

    Represents pattern that describes how axis labels should be displayed.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Setting axis labels format.
    chart.Areas[0].PrimaryAxis.LabelFormat = "1.00";
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <syncfusion:ChartAxis LabelFormat="1.00"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    See Also
    ChartAxis
    ChartArea
    ChartSeries

    LabelHeight

    Gets or sets ChartAxis label height. This is a dependency property.

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

    The label's height.

    LabelHorizontalAlignment

    Gets or sets ChartAxis label horizontal alignment. This is a dependency property.

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

    The label's horizontal alignment.

    LabelLogarithmicFormat

    Get and Set LabelLogarithmicFormatProperty

    Declaration
    public LogarithmicType LabelLogarithmicFormat { get; set; }
    Property Value
    Type Description
    LogarithmicType

    LabelPosition

    Gets or Sets the LabelPosition

    Declaration
    public LabelPositions LabelPosition { get; set; }
    Property Value
    Type Description
    LabelPositions

    LabelRotateAngle

    Gets or sets the label rotate angle. This is a dependency property.

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

    The label rotate angle in degrees.

    Remarks

    Property represents the angle that axis' labels should be rotated.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Setting label rotate angle value.
    chart.Areas[0].PrimaryAxis.LabelRotateAngle = 45;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Angle to rotate axis' labels.-->
    <syncfusion:ChartAxis LabelRotateAngle="45"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    LabelsMode

    Gets or sets the labels mode. This is a dependency property.

    Declaration
    public ChartAxisLabelsMode LabelsMode { get; set; }
    Property Value
    Type Description
    ChartAxisLabelsMode

    The labels mode. One of ChartAxisLabelsMode enumeration values.

    Remarks

    Property indicates how labels should retrieve their values.

    LabelsPostfix

    Gets or sets the labels postfix template. This is a dependency property.

    Declaration
    public DataTemplate LabelsPostfix { get; set; }
    Property Value
    Type Description
    System.Windows.DataTemplate

    The labels postfix template.

    Examples

    C#:

    This property is not intended to be used from C#.
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Height="300" Width="300">
    <syncfusion:Chart
    xmlns:syncfusion="clr-namespace:Syncfusion.Windows.Chart;assembly=Syncfusion.Chart.Wpf">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Type="RangeColumn"
    Data="0 {7 4} 1 {8 3} 2 {9 7} 3 {3 6} 4 {1 2} 5 {8 11} 6 {3 2} 7 {8 4}"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <syncfusion:ChartAxis>
    <syncfusion:ChartAxis.LabelsPostfix>
    <DataTemplate>
    <TextBlock Text="$" >
    </DataTemplate>
    </syncfusion:ChartAxis.LabelsPostfix>
    </syncfusion:ChartAxis>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    LabelsPrefix

    Declaration
    public DataTemplate LabelsPrefix { get; set; }
    Property Value
    Type Description
    System.Windows.DataTemplate

    The labels prefix template.

    Examples

    C#:

    This property is not intended to be used from C#.
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Height="300" Width="300">
    <syncfusion:Chart
    xmlns:syncfusion="clr-namespace:Syncfusion.Windows.Chart;assembly=Syncfusion.Chart.Wpf">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Type="RangeColumn"
    Data="0 {7 4} 1 {8 3} 2 {9 7} 3 {3 6} 4 {1 2} 5 {8 11} 6 {3 2} 7 {8 4}"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <syncfusion:ChartAxis>
    <syncfusion:ChartAxis.LabelsPrefix>
    <DataTemplate>
    <TextBlock Text="$" >
    </DataTemplate>
    </syncfusion:ChartAxis.LabelsPrefix>
    </syncfusion:ChartAxis>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    LabelsSource

    Gets or sets the labels source. This is a dependency property.

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

    The labels source.

    Remarks

    Source for labels may be any source that supports System.Collections.IEnumerable.

    Examples
    <Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="300" Width="300">
    <syncfusion:Chart xmlns:syncfusion="clr-namespace:Syncfusion.Windows.Chart;assembly=Syncfusion.Chart.Wpf">
       <syncfusion:Chart.Resources>
           <syncfusion:ChartAxisLabelsCollection x:Key="labelsSourse">
               <syncfusion:ChartAxisLabel Position="2.2" Content="2.2"/>
               <syncfusion:ChartAxisLabel Position="4.6" Content="4.6"/>
           </syncfusion:ChartAxisLabelsCollection>
       </syncfusion:Chart.Resources>
           <syncfusion:ChartArea>
       <syncfusion:ChartSeries Type="RangeColumn"
                        Data="0 {7 4} 1 {8 3} 2 {9 7} 3 {3 6} 4 {1 2} 5 {8 11} 6 {3 2} 7 {8 4}"/>
         <syncfusion:ChartArea.PrimaryAxis>
                   <syncfusion:ChartAxis LabelsSource="{StaticResource labelsSourse}" PositionPath="Position"/>
         </syncfusion:ChartArea.PrimaryAxis>
     </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    LabelTemplate

    Gets or sets the labels template. This is a dependency property.

    Declaration
    public DataTemplate LabelTemplate { get; set; }
    Property Value
    Type Description
    System.Windows.DataTemplate

    The labels template.

    Examples

    C#:

    This property is not intended to be used from C#.
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Height="300" Width="300">
    <syncfusion:Chart
    xmlns:syncfusion="clr-namespace:Syncfusion.Windows.Chart;assembly=Syncfusion.Chart.Wpf">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Type="RangeColumn"
    Data="0 {7 4} 1 {8 3} 2 {9 7} 3 {3 6} 4 {1 2} 5 {8 11} 6 {3 2} 7 {8 4}"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <syncfusion:ChartAxis>
    <syncfusion:ChartAxis.LabelTemplate>
    <DataTemplate>
    <Border>
    <Button Content="{Binding Content}"/>
    </Border>
    </DataTemplate>
    </syncfusion:ChartAxis.LabelTemplate>
    </syncfusion:ChartAxis>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    LabelTimeSpanFormat

    Gets or Sets the LabelTimeSpanFormat

    Declaration
    public string LabelTimeSpanFormat { get; set; }
    Property Value
    Type Description
    System.String

    LabelVerticalAlignment

    Gets or sets ChartAxis label vertical alignment. This is a dependency property.

    Declaration
    public VerticalAlignment LabelVerticalAlignment { get; set; }
    Property Value
    Type Description
    System.Windows.VerticalAlignment

    The label's vertical alignment.

    LabelWidth

    Gets or sets ChartAxis label width. This is a dependency property.

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

    The label's width.

    LineStroke

    Gets or sets the pen that used to draw the axis line. This is a dependency property.

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

    The line stroke.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Creating a new pen.
    Pen axisPen = new Pen();
    axisPen.Brush = Brushes.Red;
    axisPen.DashCap = PenLineCap.Round;
    axisPen.Thickness = 4;
    axisPen.DashStyle = new DashStyle(new [] {1d, 0d, 1d}, 0d);
    //Assigning new pen to primary axis' LineStroke property.
    chart.Areas[0].PrimaryAxis.LineStroke = axisPen;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting axis pen for primary axis-->
    <syncfusion:ChartAxis>
    <syncfusion:ChartAxis.LineStroke>
    <Pen Brush="Red" DashCap="Round" Thickness="4">
    <Pen.DashStyle>
    <DashStyle Dashes="1 0 1"/>
    </Pen.DashStyle>
    </Pen>
    </syncfusion:ChartAxis.LineStroke>
    </syncfusion:ChartAxis>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    LogarithmicBase

    Gets or sets the logarithmic base. This is a dependency property.

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

    The logarithmic base.

    LogarithmicInterval

    Get and Set LogarithmicIntervalProperty

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

    LogarithmicRange

    Gets or sets the LogarithmicRange

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

    Margin

    Gets or sets the ChartAxisPanel Margin Value

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

    MinimalZoomFactor

    Gets the minimal zoom factor.

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

    The minimal zoom factor.

    MinimumDateTimeInterval

    Gets or sets the minimum DateTime interval.

    Declaration
    public TimeSpan MinimumDateTimeInterval { get; set; }
    Property Value
    Type Description
    System.TimeSpan

    The Minimum DateTime interval.

    MinimumInterval

    Gets or sets the minimum interval.

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

    The Minimum interval.

    OpposedPosition

    Gets or sets a value indicating whether axis should be in opposed position.

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

    true if axis should be at the bottom Horizontal orientation) of left (for the Vertical orientation) side of area; otherwise, false if axis should be at the top (for the Horizontal orientation) of right(for the Vertical orientation) side of area.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Setting both axes to opposed positions.
    chart.Areas[0].PrimaryAxis.OpposedPosition = True;
    chart.Areas[0].SecondaryAxis.OpposedPosition = True;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <syncfusion:ChartAxis OpposedPosition="True"/>
    </syncfusion:ChartArea.PrimaryAxis>
    <syncfusion:ChartArea.SecondaryAxis>
    <syncfusion:ChartAxis OpposedPosition="True"/>
    </syncfusion:ChartArea.SecondaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    See Also
    ChartArea
    ChartAxisLabel

    Orientation

    Gets or sets the orientation of axis. This is a dependency property.

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

    The axis orientation.

    Remarks

    PrimaryAxis has always is horizontal orientation, SecondaryAxis has vertical as well.

    Property should be used in multiple axes scenarios.

    Origin

    Gets or sets the origin value. This is a dependency property.

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

    The origin value.

    Remarks

    Property gives ability to specify a custom origin for axis for Bar, Column, StackingColumn and Area. The origin can be any specific value in the axis range or it can also be a specific data point's value.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    series.Type = ChartTypes.Column;
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Shifting series' Origin to 10 points.
    chart.Areas[0].PrimaryAxis.Origin = 10;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4" Type="Column"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting origin for the axis.-->
    <syncfusion:ChartAxis Origin="10"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    PositionPath

    Gets or sets the position path. This is a dependency property.

    Declaration
    public string PositionPath { get; set; }
    Property Value
    Type Description
    System.String

    The position path.

    Remarks

    When LabelsSource property is set, position path used to determine value of label's position.

    See Also
    LabelsSource

    Range

    Gets or sets a value indicating the range that axis should display. Note: The Range will be applicable only when the Axis.IsAutoSetRange is set as false.

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

    The range to show on axis.

    Remarks

    Despite of what range series' data represents, only assigned range will be shown.

    Custom range can be helpful for custom scrolling axis scenarios.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Setting primary axis range from 1 to 3.
    chart.Areas[0].PrimaryAxis.Range = new DoubleRange(1, 3);
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting custom range for the axis.-->
    <syncfusion:ChartAxis Range="1,3"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    RangeCalculationMode

    This property only for Indexed axis. RangeCalculationMode is AdjustAcrossChartTypes - Segment position between ticks by default. RangeCalculationMode is ConsistentAcrossChartTypes - Segment position on ticks by default.

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

    RangePadding

    Gets or sets the range padding for axis' range. This property works only for Non-Indexed axis.

    Declaration
    public ChartRangePaddingType RangePadding { get; set; }
    Property Value
    Type Description
    ChartRangePaddingType

    The value should be set from one of ChartRangePaddingType enumeration.

    ShowAllLabels

    Gets or Sets the ShowAllLabels, used to show the labels for all segments not depends on interval.

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

    SmallTickLinesRange

    Gets or Sets the ChartTickLinesPosition

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

    SmallTickLineStroke

    Get and Set SmallTickLineStrokeProperty

    Declaration
    public Pen SmallTickLineStroke { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Pen

    SmallTickSize

    Gets or sets the size of the small tick. This is a dependency property.

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

    The size of the small tick.

    Remarks

    Small tick cannot be longer than label tick.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Setting small tick size.
    chart.Areas[0].PrimaryAxis.SmallTickSize = 15;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting small tick size-->
    <syncfusion:ChartAxis SmallTickSize="15"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    SmallTicksPerInterval

    Gets or sets the small ticks per interval. This is a dependency property.

    Declaration
    public int SmallTicksPerInterval { get; set; }
    Property Value
    Type Description
    System.Int32

    The small ticks per interval.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Setting small ticks per interval value.
    chart.Areas[0].PrimaryAxis.SmallTicksPerInterval = 2;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting small ticks per interval value.-->
    <syncfusion:ChartAxis SmallTicksPerInterval="2"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    StripLines

    Gets the strip lines collection.

    Declaration
    public ChartStripLinesCollection StripLines { get; set; }
    Property Value
    Type Description
    Syncfusion.Windows.Chart.ChartStripLinesCollection

    The strip lines.

    Remarks

    Property represents ChartStripLine that should be drawn for specified axis.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Creating a new chart stripline.
    ChartStripLine stripline = new ChartStripLine();
    //Setting additional properties.
    stripline.Interior = Brushes.Black;
    stripline.Period = 2;
    stripline.Length = 1;
    //Adding stripline to collection.
    chart.Areas[0].PrimaryAxis.Striplines.Add(stripline);
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <syncfusion:ChartAxis.StripLines>
    <syncfusion:ChartStripLine Interior="Black" Period="2" Length="1"/>
    </syncfusion:ChartAxis.StripLines>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    See Also
    ChartStripLine
    Syncfusion.Windows.Chart.ChartStripLinesCollection
    ChartAxis
    ChartArea
    ChartSeries

    TickLinesPosition

    Gets or Sets the TickLinesPosition

    Declaration
    public AxisPositions TickLinesPosition { get; set; }
    Property Value
    Type Description
    AxisPositions

    TickLinesRange

    Gets or Sets the ChartTickLinesPosition

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

    TickLineStroke

    Gets or sets the pen that used to draw the axis tick lines. This is a dependency property.

    Declaration
    public Pen TickLineStroke { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Pen

    The tick line stroke.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    //Creating a new pen.
    Pen axisPen = new Pen();
    axisPen.Brush = Brushes.Red;
    axisPen.DashCap = PenLineCap.Round;
    axisPen.Thickness = 4;
    axisPen.DashStyle = new DashStyle(new [] {1d, 0d, 1d}, 0d);
    //Assigning new pen to primary axis' TickLineStroke property.
    chart.Areas[0].PrimaryAxis.TickLineStroke = axisPen;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting axis ticks pen for primary axis-->
    <syncfusion:ChartAxis>
    <syncfusion:ChartAxis.TickLineStroke>
    <Pen Brush="Red" DashCap="Round" Thickness="4">
    <Pen.DashStyle>
    <DashStyle Dashes="1 0 1"/>
    </Pen.DashStyle>
    </Pen>
    </syncfusion:ChartAxis.TickLineStroke>
    </syncfusion:ChartAxis>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    TickSize

    Gets or sets the length of the axis' tick. This is a dependency property.

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

    The length of the axis' tick.

    Examples

    C#:

    public Window1()
    {
    InitializeComponent();
    //Creating new chart instance.
    Chart chart = new Chart();
    //Adding a new area.
    chart.Areas.Add(new ChartArea());
    //Creating datapoints collection.
    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));
    //Creating series.
    ChartSeries series = new ChartSeries();
    //Assigning points.
    series.Data = data;
    chart.Areas[0].Series.Add(series);
    ChartAxis chartXAxis = new ChartAxis();
    chartXAxis.Header = "X - Axis";
    //Setting axis' tick size.
    chartXAxis.TickSize = 20;
    chart.Areas[0].PrimaryAxis = chartXAxis;
    //Assigning window's content property.
    this.Content = chart;
    }
    XAML:
    <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    Width="300" Height="300">
    <!--Adding chart control to window's content-->
    <syncfusion:Chart
    xmlns:syncfusion="http://www.syncfusion.com/WpfChart.xsd">
    <syncfusion:ChartArea>
    <syncfusion:ChartSeries Data="1 1 2 2 3 3 4 4"/>
    <syncfusion:ChartArea.PrimaryAxis>
    <!--Setting tick size for primary axis-->
    <syncfusion:ChartAxis TickSize="20"/>
    </syncfusion:ChartArea.PrimaryAxis>
    </syncfusion:ChartArea>
    </syncfusion:Chart>
    </Window>

    TimeSpanInterval

    Get and Set TimeSpanIntervalProperty

    Declaration
    public TimeSpan TimeSpanInterval { get; set; }
    Property Value
    Type Description
    System.TimeSpan

    ValueType

    Gets or sets the type of the value that chart axis displays. This is a dependency property.

    Declaration
    public ChartValueType ValueType { get; set; }
    Property Value
    Type Description
    ChartValueType

    The type of the value.

    See Also
    ChartValueType

    VisibleInterval

    Gets the visible interval.

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

    The visible interval.

    VisibleLabels

    Gets the visible labels. Internal property.

    Declaration
    public ChartAxisLabelsCollection VisibleLabels { get; }
    Property Value
    Type Description
    Syncfusion.Windows.Chart.ChartAxisLabelsCollection

    The visible labels.

    VisibleRange

    Gets the visible range.

    Declaration
    public DoubleRange VisibleRange { get; }
    Property Value
    Type Description
    DoubleRange

    The visible DoubleRange.

    ZoomFactor

    Gets or sets the zoom factor.

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

    The zoom factor.

    ZoomPosition

    Gets or sets the zoom position.

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

    The zoom position.

    Methods

    Clone(ChartAxis, ChartAxis)

    Method for hooking RangeChanged event

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

    CoefficientToValue(Double)

    Converts co-ordinate of point related to chart control to axis units.

    Declaration
    public double CoefficientToValue(double value)
    Parameters
    Type Name Description
    System.Double value

    The absolute point value.

    Returns
    Type Description
    System.Double

    The value of point on axis.

    See Also
    ValueToCoefficient(Double)

    Deserialize(String)

    Method declaration for DeSerialize

    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 void Dispose()

    OnPropertyChanged(DependencyPropertyChangedEventArgs)

    Invoked whenever the effective value of any dependency property on this System.Windows.DependencyObject has been updated. The specific dependency property that changed is reported in the event data.

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

    Event data that will contain the dependency property identifier of interest, the property metadata for the type, and old and new values.

    Serialize()

    Method declaration for Serialize

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

    ValueToCoefficient(Double)

    Converts value of passed point co-ordinate to control related co-ordinate.

    Declaration
    public double ValueToCoefficient(double value)
    Parameters
    Type Name Description
    System.Double value

    The value of point on axis.

    Returns
    Type Description
    System.Double

    Co-ordinate of point related to chart control.

    See Also
    CoefficientToValue(Double)

    Events

    Changed

    Occurs when axis was changed.

    Declaration
    public event EventHandler Changed
    Event Type
    Type Description
    System.EventHandler

    RangeChanged

    Occurs when axis range is changed.

    Declaration
    public event ChartAxisRangeEventHandler RangeChanged
    Event Type
    Type Description
    ChartAxisRangeEventHandler

    Implements

    System.IDisposable
    IChartSerializer

    See Also

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