C# Class LiveCharts.Wpf.Axis

An Axis of a chart
Inheritance: System.Windows.FrameworkElement, IAxisView
Show file Open project: beto-rodriguez/Live-Charts Class Usage Examples

Public Properties

Property Type Description
AxisOrientationProperty System.Windows.DependencyProperty
BarUnitProperty System.Windows.DependencyProperty
DisableAnimationsProperty System.Windows.DependencyProperty
FontFamilyProperty System.Windows.DependencyProperty
FontSizeProperty System.Windows.DependencyProperty
FontStretchProperty System.Windows.DependencyProperty
FontStyleProperty System.Windows.DependencyProperty
FontWeightProperty System.Windows.DependencyProperty
ForegroundProperty System.Windows.DependencyProperty
IsMergedProperty System.Windows.DependencyProperty
LabelFormatterProperty System.Windows.DependencyProperty
LabelsProperty System.Windows.DependencyProperty
LabelsRotationProperty System.Windows.DependencyProperty
MaxRangeProperty System.Windows.DependencyProperty
MaxValueProperty System.Windows.DependencyProperty
MinRangeProperty System.Windows.DependencyProperty
MinValueProperty System.Windows.DependencyProperty
PositionProperty System.Windows.DependencyProperty
SectionsProperty System.Windows.DependencyProperty
SeparatorProperty System.Windows.DependencyProperty
ShowLabelsProperty System.Windows.DependencyProperty
TitleProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
BindALine Line
BindATextBlock System.Windows.Controls.TextBlock
LabelsVisibilityChanged void
UpdateChart PropertyChangedCallback

Public Methods

Method Description
AsCoreElement ( ChartCore chart, AxisOrientation source ) : AxisCore

Ases the core element.

Axis ( ) : System

Initializes a new instance of Axis class

Clean ( ) : void

Cleans this instance.

GetLabelSize ( ) : LiveCharts.Dtos.CoreSize

Gets the size of the label.

GetTileTop ( ) : double

Gets the tile top.

GetTitleLeft ( ) : double

Gets the title left.

RenderSeparator ( SeparatorElementCore model, ChartCore chart ) : void

Renders the separator.

SetRange ( double min, double max ) : void

Sets the range.

SetTitleLeft ( double value ) : void

Sets the title left.

SetTitleTop ( double value ) : void

Sets the title top.

UpdateTitle ( ChartCore chart, double rotationAngle ) : LiveCharts.Dtos.CoreSize

Updates the title.

Protected Methods

Method Description
OnRangeChanged ( RangeChangedEventArgs e ) : void

Raises the E:RangeChanged event.

Private Methods

Method Description
BindALine ( ) : Line
BindATextBlock ( ) : System.Windows.Controls.TextBlock
LabelsVisibilityChanged ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs ) : void
UpdateChart ( bool animate = false, bool updateNow = false ) : PropertyChangedCallback

Method Details

AsCoreElement() public method

Ases the core element.
public AsCoreElement ( ChartCore chart, AxisOrientation source ) : AxisCore
chart LiveCharts.Charts.ChartCore The chart.
source AxisOrientation The source.
return AxisCore

Axis() public method

Initializes a new instance of Axis class
public Axis ( ) : System
return System

Clean() public method

Cleans this instance.
public Clean ( ) : void
return void

GetLabelSize() public method

Gets the size of the label.
public GetLabelSize ( ) : LiveCharts.Dtos.CoreSize
return LiveCharts.Dtos.CoreSize

GetTileTop() public method

Gets the tile top.
public GetTileTop ( ) : double
return double

GetTitleLeft() public method

Gets the title left.
public GetTitleLeft ( ) : double
return double

OnRangeChanged() protected method

Raises the E:RangeChanged event.
protected OnRangeChanged ( RangeChangedEventArgs e ) : void
e LiveCharts.Events.RangeChangedEventArgs The instance containing the event data.
return void

RenderSeparator() public method

Renders the separator.
public RenderSeparator ( SeparatorElementCore model, ChartCore chart ) : void
model SeparatorElementCore The model.
chart LiveCharts.Charts.ChartCore The chart.
return void

SetRange() public method

Sets the range.
public SetRange ( double min, double max ) : void
min double The minimum.
max double The maximum.
return void

SetTitleLeft() public method

Sets the title left.
public SetTitleLeft ( double value ) : void
value double The value.
return void

SetTitleTop() public method

Sets the title top.
public SetTitleTop ( double value ) : void
value double The value.
return void

UpdateTitle() public method

Updates the title.
public UpdateTitle ( ChartCore chart, double rotationAngle ) : LiveCharts.Dtos.CoreSize
chart LiveCharts.Charts.ChartCore The chart.
rotationAngle double The rotation angle.
return LiveCharts.Dtos.CoreSize

Property Details

AxisOrientationProperty public static property

The axis orientation property
public static DependencyProperty,System.Windows AxisOrientationProperty
return System.Windows.DependencyProperty

BarUnitProperty public static property

The bar unit property
public static DependencyProperty,System.Windows BarUnitProperty
return System.Windows.DependencyProperty

DisableAnimationsProperty public static property

The disable animations property
public static DependencyProperty,System.Windows DisableAnimationsProperty
return System.Windows.DependencyProperty

FontFamilyProperty public static property

The font family property
public static DependencyProperty,System.Windows FontFamilyProperty
return System.Windows.DependencyProperty

FontSizeProperty public static property

The font size property
public static DependencyProperty,System.Windows FontSizeProperty
return System.Windows.DependencyProperty

FontStretchProperty public static property

The font stretch property
public static DependencyProperty,System.Windows FontStretchProperty
return System.Windows.DependencyProperty

FontStyleProperty public static property

The font style property
public static DependencyProperty,System.Windows FontStyleProperty
return System.Windows.DependencyProperty

FontWeightProperty public static property

The font weight property
public static DependencyProperty,System.Windows FontWeightProperty
return System.Windows.DependencyProperty

ForegroundProperty public static property

The foreground property
public static DependencyProperty,System.Windows ForegroundProperty
return System.Windows.DependencyProperty

IsMergedProperty public static property

The is merged property
public static DependencyProperty,System.Windows IsMergedProperty
return System.Windows.DependencyProperty

LabelFormatterProperty public static property

The label formatter property
public static DependencyProperty,System.Windows LabelFormatterProperty
return System.Windows.DependencyProperty

LabelsProperty public static property

The labels property
public static DependencyProperty,System.Windows LabelsProperty
return System.Windows.DependencyProperty

LabelsRotationProperty public static property

The labels rotation property
public static DependencyProperty,System.Windows LabelsRotationProperty
return System.Windows.DependencyProperty

MaxRangeProperty public static property

The maximum range property
public static DependencyProperty,System.Windows MaxRangeProperty
return System.Windows.DependencyProperty

MaxValueProperty public static property

The maximum value property
public static DependencyProperty,System.Windows MaxValueProperty
return System.Windows.DependencyProperty

MinRangeProperty public static property

The minimum range property
public static DependencyProperty,System.Windows MinRangeProperty
return System.Windows.DependencyProperty

MinValueProperty public static property

The minimum value property
public static DependencyProperty,System.Windows MinValueProperty
return System.Windows.DependencyProperty

PositionProperty public static property

The position property
public static DependencyProperty,System.Windows PositionProperty
return System.Windows.DependencyProperty

SectionsProperty public static property

The sections property
public static DependencyProperty,System.Windows SectionsProperty
return System.Windows.DependencyProperty

SeparatorProperty public static property

The separator property
public static DependencyProperty,System.Windows SeparatorProperty
return System.Windows.DependencyProperty

ShowLabelsProperty public static property

The show labels property
public static DependencyProperty,System.Windows ShowLabelsProperty
return System.Windows.DependencyProperty

TitleProperty public static property

The title property
public static DependencyProperty,System.Windows TitleProperty
return System.Windows.DependencyProperty