YAxis

[ Schnittstelle ]

export interface YAxis {
    id: number;
    showAxis: boolean;
    position: TcHmiCharting.IAxis.Position;
    logarithmicScale: boolean;
    axisLabeling: ["Number", "Scientific", "Auto"];
    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;
    showIfNoData?: boolean;
    format?: TcHmi.IFunction<string>;
}

Eigenschaften

Name

Typ

Beschreibung

id

number

id der Y-Achse

showAxis

boolean

Sichtbarkeit der Achse

position

TcHmiCharting.IAxis.Position

Position als Enumeration

logarithmicScale

boolean

Logarithmische Skalierung

axisLabeling

TcHmiCharting.AxisLabeling

Zahlenformat der Achse

mainTickMinValue

number

Minimalwert des Hauptachsenmarkers

mainTickMaxValue

number

Maximalwert des Hauptachsenmarkers

showLabels

boolean

Soll die Beschriftung angezeigt werden

labelFontColor (optional)

TcHmi.SolidColor

Farbe des Beschritungstextes

axisColor (optional)

TcHmi.SolidColor

Farbe des Achse

showAxisName (optional)

boolean

Soll der Achsname angezeigt werden

axisName (optional)

string

Name der Achse

axisNameFontFamily (optional)

string

Schriftart des Achsnamens

axisNameFontSize (optional)

number

Schriftgröße des Achsnamens

axisNameFontSizeUnit (optional)

TcHmi.DimensionUnit

Einheit der Schriftgröße des Achsnamens

axisNameFontWeight (optional)

TcHmi.FontWeight

Schriftstärke des Achsnamens

axisNameFontColor (optional)

TcHmi.SolidColor

Schriftfarbe des Achsnamens

decimalPlaces (optional)

number

Dezimalstellen der Achsbeschriftung

unit (optional)

string

Anzeige-Einheit

autoScaling (optional)

boolean

Soll die Achse sich automatisch anpassen

showAxisIfNoData

boolean

Anzeige der Achse bei vorhandenen Daten

Format

TcHmi.IFunction

Formattierungsfunktion der Achsenbeschriftungen

Siehe auch

Schema: tchmi:framework#/definitions/ChartYAxisDefinition

YAxis 1:

Verfügbar ab Version 1.8