Table of Contents

Class Axis

Namespace
Terminal.Gui.Graphs
Assembly
Terminal.Gui.dll

Renders a continuous line with grid line ticks and labels

public abstract class Axis
Inheritance
Axis
Derived
Inherited Members

Constructors

Axis(Orientation)

Populates base properties and sets the read only Orientation

Fields

LabelGetter

Allows you to control what label text is rendered for a given Increment when ShowLabelsEvery is above 0

Properties

Increment

Number of units of graph space between ticks on axis. 0 for no ticks

Minimum

The minimum axis point to show. Defaults to null (no minimum)

Orientation

Direction of the axis

ShowLabelsEvery

The number of Increment before an label is added. 0 = never show labels

Text

Displayed below/to left of labels (see Orientation). If text is not visible, check MarginBottom / MarginLeft

Visible

True to render axis. Defaults to true

Methods

DrawAxisLabel(GraphView, int, string)

Draws a custom label text at screenPosition units along the axis (X or Y depending on Orientation)

DrawAxisLabels(GraphView)

Draws labels and axis Increment ticks

DrawAxisLine(GraphView)

Draws the solid line of the axis

DrawAxisLine(GraphView, int, int)

Draws a single cell of the solid line of the axis

Reset()

Resets all configurable properties of the axis to default values