Class ChartAxis
Enables plotting of data points in a chart control.
Implements
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public abstract class ChartAxis : Control, ICloneable
Remarks
The Chart requires a minimum of two axes namely primary axis and secondary axis to plot data points. Values / data in the chart are plotted against these two axes. Chart WINRT also supports adding multiple axes to the chart and the series can be drawn with reference to any x-axis,y-axis added to SfChart
Examples
<syncfusion:SfChart>
<syncfusion:SfChart.PrimaryAxis>
<syncfusion:ChartAxis/>
</syncfusion:SfChart.PrimaryAxis>
<syncfusion:SfChart.SecondaryAxis >
<syncfusion:ChartAxis/>
</syncfusion:SfChart.SecondaryAxis>
</syncfusion:SfChart >
ChartAxis xAxis = new ChartAxis();
chartArea.PrimaryAxis = xAxis;
ChartAxis yAxis = new ChartAxis();
chartArea.SecondaryAxis = yAxis;
Constructors
ChartAxis()
Called when instance created for ChartAxis
Declaration
public ChartAxis()
Fields
AxisLineOffsetProperty
The DependencyProperty for AxisLineOffset property.
Declaration
public static readonly DependencyProperty AxisLineOffsetProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
AxisLineStyleProperty
The DependencyProperty for AxisLineStyle property.
Declaration
public static readonly DependencyProperty AxisLineStyleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ContentPathProperty
The DependencyProperty for ContentPath property.
Declaration
public static readonly DependencyProperty ContentPathProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CrosshairLabelTemplateProperty
The DependencyProperty for CrosshairLabelTemplate property.
Declaration
public static readonly DependencyProperty CrosshairLabelTemplateProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
CRoundDecimals
CRoundDecimals const variable declarations
Declaration
protected const int CRoundDecimals = 11
Field Value
| Type |
|---|
| System.Int32 |
DesiredIntervalsCountProperty
The DependencyProperty for DesiredIntervalsCount property.
Declaration
public static readonly DependencyProperty DesiredIntervalsCountProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
EdgeLabelsDrawingModeProperty
The DependencyProperty for EdgeLabelsDrawingMode property.
Declaration
public static readonly DependencyProperty EdgeLabelsDrawingModeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
EdgeLabelsVisibilityModeProperty
The DependencyProperty for EdgeLabelsVisibilityMode property.
Declaration
public static readonly DependencyProperty EdgeLabelsVisibilityModeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
EnableAutoIntervalOnZoomingProperty
The DependencyProperty for EnableAutoIntervalOnZooming property.
Declaration
public static readonly DependencyProperty EnableAutoIntervalOnZoomingProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
HeaderPositionProperty
The DependencyProperty for HeaderPosition property.
Declaration
public static readonly DependencyProperty HeaderPositionProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
HeaderProperty
The DependencyProperty for Header property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
HeaderStyleProperty
The DependencyProperty for HeaderStyle property.
Declaration
public static readonly DependencyProperty HeaderStyleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
HeaderTemplateProperty
The DependencyProperty for HeaderTemplate property.
Declaration
public static readonly DependencyProperty HeaderTemplateProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
IsInversedProperty
The DependencyProperty for IsInversed property.
Declaration
public static readonly DependencyProperty IsInversedProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LabelExtentProperty
The DependencyProperty for LabelExtent property.
Declaration
public static readonly DependencyProperty LabelExtentProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LabelFormatProperty
The DependencyProperty for LabelFormat property.
Declaration
public static readonly DependencyProperty LabelFormatProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LabelRotationAngleProperty
The DependencyProperty for LabelRotationAngle property.
Declaration
public static readonly DependencyProperty LabelRotationAngleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LabelsIntersectActionProperty
The DependencyProperty for LabelsIntersectAction property.
Declaration
public static readonly DependencyProperty LabelsIntersectActionProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LabelsPositionProperty
The DependencyProperty for LabelsPosition property.
Declaration
public static readonly DependencyProperty LabelsPositionProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LabelsSourceProperty
The DependencyProperty for LabelsSource property.
Declaration
public static readonly DependencyProperty LabelsSourceProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LabelStyleProperty
The DependencyProperty for LabelStyle property.
Declaration
public static readonly DependencyProperty LabelStyleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LabelTemplateProperty
The DependencyProperty for LabelTemplate property.
Declaration
public static readonly DependencyProperty LabelTemplateProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
MajorGridLineStyleProperty
The DependencyProperty for MajorGridLineStyle property.
Declaration
public static readonly DependencyProperty MajorGridLineStyleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
MajorTickLineStyleProperty
The DependencyProperty for MajorTickLineStyle property.
Declaration
public static readonly DependencyProperty MajorTickLineStyleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
MaximumLabelsProperty
The DependencyProperty for MaximumLabels property.
Declaration
public static readonly DependencyProperty MaximumLabelsProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
MaxPixelsCount
MaxPixelsCount variable declarations
Declaration
protected double MaxPixelsCount
Field Value
| Type |
|---|
| System.Double |
MinorGridLineStyleProperty
The DependencyProperty for MinorGridLineStyle property.
Declaration
public static readonly DependencyProperty MinorGridLineStyleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
MinorTickLineStyleProperty
The DependencyProperty for MinorTickLineStyle property.
Declaration
public static readonly DependencyProperty MinorTickLineStyleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
OpposedPositionProperty
The DependencyProperty for OpposedPosition property.
Declaration
public static readonly DependencyProperty OpposedPositionProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
OriginLineStyleProperty
The DependencyProperty for OriginLineStyle property.
Declaration
public static readonly DependencyProperty OriginLineStyleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
OriginProperty
The DependencyProperty for Origin property.
Declaration
public static readonly DependencyProperty OriginProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
PlotOffsetEndProperty
The DependencyProperty for PlotOffsetEnd property.
Declaration
public static readonly DependencyProperty PlotOffsetEndProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
PlotOffsetProperty
The DependencyProperty for PlotOffset property.
Declaration
public static readonly DependencyProperty PlotOffsetProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
PlotOffsetStartProperty
The DependencyProperty for PlotOffsetStart property.
Declaration
public static readonly DependencyProperty PlotOffsetStartProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
PositionPathProperty
The DependencyProperty for PositionPath property.
Declaration
public static readonly DependencyProperty PositionPathProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
PostfixLabelTemplateProperty
The DependencyProperty for PostfixLabelTemplate property.
Declaration
public static readonly DependencyProperty PostfixLabelTemplateProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
PrefixLabelTemplateProperty
The DependencyProperty for PrefixLabelTemplate property.
Declaration
public static readonly DependencyProperty PrefixLabelTemplateProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
RangeStylesProperty
The DependencyProperty for the RangeStyles property.
Declaration
public static readonly DependencyProperty RangeStylesProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowAxisNextToOriginProperty
The DependencyProperty for ShowAxisNextToOrigin property.
Declaration
public static readonly DependencyProperty ShowAxisNextToOriginProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowGridLinesProperty
The DependencyProperty for ShowGridLines property.
Declaration
public static readonly DependencyProperty ShowGridLinesProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowOriginProperty
The DependencyProperty for ShowOrigin property.
Declaration
public static readonly DependencyProperty ShowOriginProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowTrackBallInfoProperty
The DependencyProperty for ShowTrackBallInfo property.
Declaration
public static readonly DependencyProperty ShowTrackBallInfoProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ThumbLabelTemplateProperty
The DependencyProperty for ThumbLabelTemplate property.
Declaration
public static readonly DependencyProperty ThumbLabelTemplateProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ThumbLabelVisibilityProperty
The DependencyProperty for ThumbLabelVisibility property.
Declaration
public static readonly DependencyProperty ThumbLabelVisibilityProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
TickLineSizeProperty
The DependencyProperty for TickLineSize property.
Declaration
public static readonly DependencyProperty TickLineSizeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
TickLinesPositionProperty
The DependencyProperty for TickLinesPosition property.
Declaration
public static readonly DependencyProperty TickLinesPositionProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
TrackBallLabelTemplateProperty
The DependencyProperty for TrackBallLabelTemplate property.
Declaration
public static readonly DependencyProperty TrackBallLabelTemplateProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
ActualPlotOffset
Gets or sets the plot offset value
Declaration
public double ActualPlotOffset { get; }
Property Value
| Type |
|---|
| System.Double |
ArrangeRect
Gets the bounds of the chart axis size.
Declaration
public Rect ArrangeRect { get; }
Property Value
| Type |
|---|
| System.Windows.Rect |
AxisLineOffset
Gets or sets the offset value for applying padding to the axis line.
Declaration
public double AxisLineOffset { get; set; }
Property Value
| Type |
|---|
| System.Double |
AxisLineStyle
Gets or sets the options for customizing for the axis line.
Declaration
public Style AxisLineStyle { get; set; }
Property Value
| Type |
|---|
| System.Windows.Style |
ContentPath
Gets or sets the property path to be bind with axis label content(text).
Declaration
public string ContentPath { get; set; }
Property Value
| Type |
|---|
| System.String |
Remarks
While using custom label source, the label text will get from this property.
CrosshairLabelTemplate
Gets or sets the custom template for the Crosshair labels.
Declaration
public DataTemplate CrosshairLabelTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.DataTemplate | System.Windows.DataTemplate |
Examples
<syncfusion:SfChart.PrimaryAxis>
<syncfusion:ChartAxis CrosshairLabelTemplate="{StaticResource crossHairTemplateX}"/>
</syncfusion:SfChart.PrimaryAxis>
<syncfusion:SfChart.SecondaryAxis>
<syncfusion:ChartAxis CrosshairLabelTemplate="{StaticResource crossHairTemplateY}"/>
</syncfusion:SfChart.SecondaryAxis>
primaryAxis.ShowTrackballInfo = true;
primaryAxis.CrosshairLabelTemplate = dataTemplateX;
secondaryAxis.ShowTrackballInfo= true;
secondaryAxis.CrosshairLabelTemplate = dataTemplateY;
CustomLabels
Gets the axis custom labels collection.
Declaration
public ChartAxisLabelCollection CustomLabels { get; }
Property Value
| Type |
|---|
| ChartAxisLabelCollection |
DesiredIntervalsCount
Gets or sets the interval for the axis auto range calculation, if Interval is not set explicitly.
Declaration
public int? DesiredIntervalsCount { get; set; }
Property Value
| Type |
|---|
| System.Nullable<System.Int32> |
EdgeLabelsDrawingMode
Gets or sets mode which decides the mechanism for extreme(edge) labels. It can be position center, hide, etc.
Declaration
public EdgeLabelsDrawingMode EdgeLabelsDrawingMode { get; set; }
Property Value
| Type | Description |
|---|---|
| EdgeLabelsDrawingMode |
EdgeLabelsVisibilityMode
Gets or sets the edge labels visibility mode for hiding the edge labels on zooming.
Declaration
public EdgeLabelsVisibilityMode EdgeLabelsVisibilityMode { get; set; }
Property Value
| Type |
|---|
| EdgeLabelsVisibilityMode |
EnableAutoIntervalOnZooming
GGets or sets the value that indicates whether to calculate the axis intervals on zooming.
Declaration
public bool EnableAutoIntervalOnZooming { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Remarks
While zooming, the range and interval will change with respect to zoom position or zoom factor
Header
Gets or sets the header for the chart axis.
Declaration
public object Header { get; set; }
Property Value
| Type |
|---|
| System.Object |
HeaderPosition
Gets or sets the position for Axis header, when enabling the ShowAxisNextToOrigin property.
Declaration
public AxisHeaderPosition HeaderPosition { get; set; }
Property Value
| Type |
|---|
| AxisHeaderPosition |
HeaderStyle
Gets or sets the style for the chart axis header.
Declaration
public LabelStyle HeaderStyle { get; set; }
Property Value
| Type | Description |
|---|---|
| LabelStyle |
HeaderTemplate
Gets or sets the custom template for the chart header.
Declaration
public DataTemplate HeaderTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.DataTemplate | System.Windows.DataTemplate |
IsInversed
Gets or sets the value that indicates whether the axis visible range is inversed. When reversed, the axis will render points from right to left if horizontal, top to bottom when vertical and clockwise if radial.
Declaration
public bool IsInversed { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
IsLogarithmic
Gets or sets IsLogarithmic property
Declaration
public bool IsLogarithmic { get; }
Property Value
| Type |
|---|
| System.Boolean |
LabelExtent
Gets or sets the value that determines the distance between the axis label and axis title.
Declaration
public double LabelExtent { get; set; }
Property Value
| Type |
|---|
| System.Double |
LabelFormat
Gets or sets the label formatting for the axis labels.
Declaration
public string LabelFormat { get; set; }
Property Value
| Type |
|---|
| System.String |
LabelRotationAngle
Gets or sets the rotation angle of the axis labels.
Declaration
public double LabelRotationAngle { get; set; }
Property Value
| Type |
|---|
| System.Double |
Remarks
The default value is 0 and the label will be rotated with center as origin.
LabelsIntersectAction
Gets or sets a value which decides the mechanism to avoid the axis labels overlapping. The overlapping labels can be hided, rotated or placed on next row.
Declaration
public AxisLabelsIntersectAction LabelsIntersectAction { get; set; }
Property Value
| Type | Description |
|---|---|
| AxisLabelsIntersectAction |
LabelsPosition
Gets or sets the position for the axis labels. Either inside or outside of the plot area.
Declaration
public AxisElementPosition LabelsPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| AxisElementPosition |
LabelsSource
Gets or sets the custom labels collection to be displayed in axis .
Declaration
public object LabelsSource { get; set; }
Property Value
| Type |
|---|
| System.Object |
LabelStyle
Gets or sets the options for customizing the axis labels.
Declaration
public LabelStyle LabelStyle { get; set; }
Property Value
| Type |
|---|
| LabelStyle |
LabelTemplate
Gets or sets the custom template for the axis labels.
Declaration
public DataTemplate LabelTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.DataTemplate | System.Windows.DataTemplate |
MajorGridLineStyle
Gets or sets the style for the major grid lines.
Declaration
public Style MajorGridLineStyle { get; set; }
Property Value
| Type |
|---|
| System.Windows.Style |
MajorTickLineStyle
Gets or sets the style for the major tick line style.
Declaration
public Style MajorTickLineStyle { get; set; }
Property Value
| Type |
|---|
| System.Windows.Style |
MaximumLabels
Gets or sets the maximum no of label to be displayed per 100 pixels.
Declaration
public int MaximumLabels { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Remarks
This property used to avoid more no of labels on auto range calculation.
MinorGridLineStyle
Gets or sets the style for the minor grid lines.
Declaration
public Style MinorGridLineStyle { get; set; }
Property Value
| Type |
|---|
| System.Windows.Style |
MinorTickLineStyle
Gets or sets the style for the minor tick line style.
Declaration
public Style MinorTickLineStyle { get; set; }
Property Value
| Type |
|---|
| System.Windows.Style |
OpposedPosition
Gets or sets a value indicating whether to enable the axis to position opposite to its actual position. That is, to the other side of plot area.
Declaration
public bool OpposedPosition { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Origin
Gets or sets the origin value where its associated axis should place.
Declaration
public double Origin { get; set; }
Property Value
| Type |
|---|
| System.Double |
OriginLineStyle
Gets or sets the style for origin line when enable the ShowOrigin property.
Declaration
public Style OriginLineStyle { get; set; }
Property Value
| Type |
|---|
| System.Windows.Style |
PlotOffset
Gets or sets the offset value for applying the padding to the plot area.
Declaration
public double PlotOffset { get; set; }
Property Value
| Type |
|---|
| System.Double |
PlotOffsetEnd
Gets or sets the value that used to offset the rendering of the axis at end position.
Declaration
public double PlotOffsetEnd { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The default value is 0. |
Remarks
PlotOffsetEnd applies padding at end of plot area where the axis and its elements are rendered in chart with padding at end. PlotOffsetEnd is not applicable for polar and radar chart series. If the values set to both PlotOffset and PlotOffsetEnd, then PlotOffset takes highest precedence.
See Also
PlotOffsetStart
Gets or sets the value that used to offset the rendering of the axis at start position.
Declaration
public double PlotOffsetStart { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The default value is 0. |
Remarks
PlotOffsetStart applies padding at start of plot area where the axis and its elements are rendered in chart with padding at start. PlotOffsetStart is not applicable for polar and radar chart series. If the values set to both PlotOffset and PlotOffsetStart, then PlotOffset takes highest precedence.
See Also
PositionPath
Gets or sets the property path to be bind with axis label position.
Declaration
public string PositionPath { get; set; }
Property Value
| Type |
|---|
| System.String |
Remarks
While using custom label source, the position(index) for labels will get from this property.
PostfixLabelTemplate
Gets or sets the custom template for the axis label postfix.
Declaration
public DataTemplate PostfixLabelTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.DataTemplate | System.Windows.DataTemplate |
PrefixLabelTemplate
Gets or sets the custom template for the axis label postfix.
Declaration
public DataTemplate PrefixLabelTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.DataTemplate | System.Windows.DataTemplate |
RangeStyles
Gets or sets a collection of the ChartAxisRangeStyle to customize the axis gridlines.
Declaration
public ChartAxisRangeStyleCollection RangeStyles { get; set; }
Property Value
| Type |
|---|
| ChartAxisRangeStyleCollection |
ShowAxisNextToOrigin
Gets or sets a value indicating whether axis can be positioned across the plot area.
Declaration
public bool ShowAxisNextToOrigin { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ShowGridLines
Gets or sets a value indicating whether the axis gird lines can be display or not.
Declaration
public bool ShowGridLines { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ShowOrigin
Gets or sets a value indicating whether to show the origin line or not.
Declaration
public bool ShowOrigin { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ShowTrackBallInfo
Gets or sets a value indicating whether to show track ball label for this axis.
Declaration
public bool ShowTrackBallInfo { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ThumbLabelTemplate
Gets or sets the custom template for the scroll bar thumb.
Declaration
public DataTemplate ThumbLabelTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.DataTemplate | System.Windows.DataTemplate |
ThumbLabelVisibility
Gets or sets visibility of label.
Declaration
public Visibility ThumbLabelVisibility { get; set; }
Property Value
| Type |
|---|
| System.Windows.Visibility |
TickLineSize
Gets or sets the size for the axis tick lines.
Declaration
public double TickLineSize { get; set; }
Property Value
| Type |
|---|
| System.Double |
Remarks
The default value is 8.
TickLinesPosition
Gets or sets a value indicating whether the tick line position, either inside or outside.
Declaration
public AxisElementPosition TickLinesPosition { get; set; }
Property Value
| Type |
|---|
| AxisElementPosition |
TrackBallLabelTemplate
Gets or sets the custom template for the trackball tooltip label.
Declaration
public DataTemplate TrackBallLabelTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.DataTemplate | System.Windows.DataTemplate |
VisibleLabels
Gets the collection of axis labels in the visible region.
Declaration
public ObservableCollection<ChartAxisLabel> VisibleLabels { get; }
Property Value
| Type |
|---|
| System.Collections.ObjectModel.ObservableCollection<ChartAxisLabel> |
VisibleRange
Gets the visible range of the axis.
Declaration
public DoubleRange VisibleRange { get; protected set; }
Property Value
| Type |
|---|
| DoubleRange |
Methods
AddSmallTicksPoint(Double)
Method implementation for Add SamllTicksPoint
Declaration
protected virtual void AddSmallTicksPoint(double position)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | position |
AddSmallTicksPoint(Double, Double)
Method implementation for Add smallTicks to axis
Declaration
protected virtual void AddSmallTicksPoint(double position, double interval)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | position | |
| System.Double | interval |
ApplyRangePadding(DoubleRange, Double)
Apply padding based on interval
Declaration
protected virtual DoubleRange ApplyRangePadding(DoubleRange range, double interval)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleRange | range | |
| System.Double | interval |
Returns
| Type |
|---|
| DoubleRange |
CalculateActualInterval(DoubleRange, Size)
Calculates actual interval
Declaration
protected virtual double CalculateActualInterval(DoubleRange range, Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleRange | range | |
| System.Windows.Size | availableSize |
Returns
| Type |
|---|
| System.Double |
CalculateActualRange()
Calculates actual range
Declaration
protected virtual DoubleRange CalculateActualRange()
Returns
| Type |
|---|
| DoubleRange |
CalculateNiceInterval(DoubleRange, Size)
Calculates nice interval
Declaration
protected virtual double CalculateNiceInterval(DoubleRange actualRange, Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleRange | actualRange | |
| System.Windows.Size | availableSize |
Returns
| Type |
|---|
| System.Double |
CalculateVisibleRange(Size)
Calculates the visible range.
Declaration
protected virtual void CalculateVisibleRange(Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | availableSize |
Clone()
Clone the axis
Declaration
public DependencyObject Clone()
Returns
| Type |
|---|
| System.Windows.DependencyObject |
CloneAxis(DependencyObject)
Declaration
protected virtual DependencyObject CloneAxis(DependencyObject obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyObject | obj |
Returns
| Type |
|---|
| System.Windows.DependencyObject |
CoefficientToActualValue(Double)
Converts co-ordinate of point related to chart control to axis units. It returns actual value instead of visible value.
Declaration
public virtual double CoefficientToActualValue(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | value | The absolute point value. |
Returns
| Type | Description |
|---|---|
| System.Double | The value of point on axis. |
CoefficientToValue(Double)
Converts co-ordinate of point related to chart control to axis units.
Declaration
public virtual 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
GenerateVisibleLabels()
Method implementation for Generate Labels in ChartAxis
Declaration
protected virtual void GenerateVisibleLabels()
GetActualDesiredIntervalsCount(Size)
Returns the maximum desired intervals count.
Declaration
protected double GetActualDesiredIntervalsCount(Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | availableSize |
Returns
| Type |
|---|
| System.Double |
GetArrangeRect()
Gets the rect co-ordinates of an axis excluding its value of LabelOffset and AxisLineOffset.
Declaration
public Rect GetArrangeRect()
Returns
| Type | Description |
|---|---|
| System.Windows.Rect | returns rect |
GetLabelContent(Double)
Return Object value from the given position value
Declaration
public virtual object GetLabelContent(double position)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | position |
Returns
| Type |
|---|
| System.Object |
GetRenderedRect()
Gets the actual rect co-ordinates of an ChartAxis.
Declaration
public Rect GetRenderedRect()
Returns
| Type | Description |
|---|---|
| System.Windows.Rect | returns rect |
MeasureOverride(Size)
Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | availableSize |
Returns
| Type | Description |
|---|---|
| System.Windows.Size | The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size. |
OnAxisBoundsChanged(ChartAxisBoundsEventArgs)
Event invokes when axis bounds changed.
Declaration
protected virtual void OnAxisBoundsChanged(ChartAxisBoundsEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| ChartAxisBoundsEventArgs | args | Which indicates ChartAxisBoundsEventArgs |
OnAxisVisibleRangeChanged(VisibleRangeChangedEventArgs)
Event invokes when axis VisibleRange is changed.
Declaration
protected virtual void OnAxisVisibleRangeChanged(VisibleRangeChangedEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| VisibleRangeChangedEventArgs | args | Which indicates VisibleRangeChangedEventArgs |
OnCreateAutomationPeer()
Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the WPF infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
| Type | Description |
|---|---|
| System.Windows.Automation.Peers.AutomationPeer | The type-specific System.Windows.Automation.Peers.AutomationPeer implementation. |
OnPropertyChanged()
Event correspond to property value changed. It invokes when the ChartAxis properties changed.
Declaration
protected virtual void OnPropertyChanged()
OnRegisteredSeriesCollectionChanged(Object, NotifyCollectionChangedEventArgs)
Occurs when axis registered series collection changed.
Declaration
protected virtual void OnRegisteredSeriesCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | |
| System.Collections.Specialized.NotifyCollectionChangedEventArgs | e |
PolarCoefficientToValue(Double)
Converts Coefficient of Value related to chart control to Polar/Radar type axis unit.
Declaration
public virtual double PolarCoefficientToValue(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | value | Polar/Radar type axis Coefficient Value |
Returns
| Type | Description |
|---|---|
| System.Double | The value of point on Polar/Radar type axis |
ValueToCoefficient(Double)
Converts value of passed point co-ordinate to control related co-ordinate.
Declaration
public virtual double ValueToCoefficient(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | value | The value of point on axis. |
Returns
| Type | Description |
|---|---|
| System.Double | The value of point on axis. |
See Also
ValueToCoefficient(Double, Boolean)
Converts value of passed point co-ordinate to control related co-ordinate.
Declaration
public virtual double ValueToCoefficient(double value, bool isInversed)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | value | The value of point on axis. |
| System.Boolean | isInversed | The value indicates whether IsInversed is e/> |
Returns
| Type | Description |
|---|---|
| System.Double | Co-ordinate of point related to chart control. |
See Also
ValueToPolarCoefficient(Double)
Converts co-ordinate of point related to chart control to Polar/Radar type axis unit.
Declaration
public virtual double ValueToPolarCoefficient(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
Events
ActualRangeChanged
Occurs when [actual range changed].
Declaration
public event EventHandler<ActualRangeChangedEventArgs> ActualRangeChanged
Event Type
| Type |
|---|
| System.EventHandler<ActualRangeChangedEventArgs> |
AxisBoundsChanged
Occurs when axis plot area size changed.
Declaration
public event EventHandler<ChartAxisBoundsEventArgs> AxisBoundsChanged
Event Type
| Type |
|---|
| System.EventHandler<ChartAxisBoundsEventArgs> |
LabelCreated
Occurs when the labels is created.
Declaration
public event EventHandler<LabelCreatedEventArgs> LabelCreated
Event Type
| Type |
|---|
| System.EventHandler<LabelCreatedEventArgs> |