ICartesianAxis
Interface
Assembly LiveChartsCore
Namespace LiveChartsCore.Kernel.Sketches
Summary:
Defines an Axis in a Cartesian chart.
Derived:
Properties
Gets the orientation.
Type: AxisOrientation
Type: AxisOrientation
Gets or sets the labels density, it is a factor that determines the distance between labels when calculated
by the library, 0 is the most dense any value greater than 0 will make the labels to be more separated,
values less than 0 will make the labels to overlap (labels rotation could prevent overlapping).
Default value is 0.85.
Type: Single
Type: Single
Gets or sets the distance that the axis can be panned beyond its limits, the unit is percentage of the chart
width or height depending on the axis orientation, default is 0.25 which means that the axis can be panned
25% of the chart width or height beyond its limits.
Type: Double
Type: Double
Gets or sets the reserved area for the labels.
Type: LvcRectangle
Type: LvcRectangle
Gets or sets the max label size, this value is used internally to measure the axis.
Type: LvcSize
Type: LvcSize
Gets or sets the reserved area for the name.
Type: LvcRectangle
Type: LvcRectangle
Places the title in the same direction as the axis, default is false.
Type: Boolean
Type: Boolean
Gets or sets the labels alignment, default is null and means that the library will set it based on the
Orientation and Position properties.
Type: Nullable<Align>
Type: Nullable<Align>
Gets or sets the axis position.
Type: AxisPosition
Type: AxisPosition
Gets or sets the sub-separators paint.
Type: Paint
Type: Paint
Gets or sets the number of subseparators to draw.
Type: Int32
Type: Int32
Gets or sets whether the ticks path should be drawn.
Type: Boolean
Type: Boolean
Gets or sets the separators paint.
Type: Paint
Type: Paint
Gets or sets the separators paint.
Type: Paint
Type: Paint
Gets or sets the crosshair paint.
Type: Paint
Type: Paint
Gets or sets the crosshair labels paint.
Type: Paint
Type: Paint
Gets or sets the crosshair labels padding.
Type: Padding
Type: Padding
Gets or sets whether the crosshair snaps to nearest series.
Type: Boolean
Type: Boolean
Events
Occurs when the axis measure starts.
Handler definition: Action<Chart, ICartesianAxis>
Handler definition: Action<Chart, ICartesianAxis>
Methods
// Called when the axis measure starts.
| Chart chart, | // The chart. |
| AxisOrientation orientation | // The orientation. |
)
// Gets the axis limits considering its own and the SharedWith axes.