YAxis

[ Interface ]

export interface YAxis {
    id: number;
    position: TcHmiCharting.IAxis.Position;
    mainTickMinValue?: number;
    mainTickMaxValue?: number;
    showLabels?: boolean;
    labelFontColor?: TcHmi.SolidColor;
    axisColor?: TcHmi.SolidColor;
    showAxisName?: boolean;
    axisName?: string;
    axisNameFontFamily?: string;
    axisNameFontSize?: number;
    axisNameFontSizeUnit?: TcHmi.DimensionUnit;
    axisNameFontWeight?: TcHmi.FontWeight;
    axisNameFontColor?: TcHmi.SolidColor;
    decimalPlaces?: number;
    unit?: string;
    autoScaling?: boolean;
}

Properties

Name

Type

Description

id

number

id of the Y-axis

position

TcHmiCharting.IAxis.Position

Position as enumeration

mainTickMinValue

number

Minimum value of the main axis marker

mainTickMaxValue

number

Maximum value of the main axis marker

showLabels

boolean

Is the label to be displayed

labelFontColor (optional)

TcHmi.SolidColor

Color of the label text

axisColor (optional)

TcHmi.SolidColor

Axis color

showAxisName (optional)

boolean

Is the axis name to be displayed

axisName (optional)

string

Name of the axis

axisNameFontFamily (optional)

string

Font of the axis name

axisNameFontSize (optional)

number

Font size of the axis name

axisNameFontSizeUnit (optional)

TcHmi.DimensionUnit

Unit of the font size of the axis name

axisNameFontWeight (optional)

TcHmi.FontWeight

Font weight of the axis name

axisNameFontColor (optional)

TcHmi.SolidColor

Font color of the axis name

decimalPlaces (optional)

number

Decimal places of the axis labeling

unit (optional)

string

Display unit

autoScaling (optional)

boolean

Should the axis adapt automatically

See also

Schema: tchmi:framework#/definitions/ChartYAxisDefinition

YAxis 1:

Available from 1.8