Table of Contents

Class HorizontalAxis

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

The horizontal (x axis) of a GraphView

public class HorizontalAxis : Axis
Inheritance
HorizontalAxis
Inherited Members

Constructors

HorizontalAxis()

Creates a new instance of axis with an Orientation of Horizontal

Methods

DrawAxisLabel(GraphView, int, string)

Draws the given text on the axis at x screenPosition. For the screen y position use GetAxisYPosition(GraphView)

DrawAxisLabels(GraphView)

Draws the horizontal x axis labels and Increment ticks

DrawAxisLine(GraphView)

Draws the horizontal axis line

DrawAxisLine(GraphView, int, int)

Draws a horizontal axis line at the given x, y screen coordinates

GetAxisYPosition(GraphView)

Returns the Y screen position of the origin (typically 0,0) of graph space. Return value is bounded by the screen i.e. the axis is always rendered even if the origin is offscreen.