BarGraphColors

Defines the colors of the graphs. Can be overwritten using the attribute BarGraphDescription.

Engineering

1. Define the color of the individual data sets for the 'Bar Graph Colors' attribute of the 'Common' category using the 'Bar Graph Color' dialog.

2. Deactivate the 'X-Axis Autoscaling' attribute of the 'X-Axis' category.

3. Define the minimum and maximum value of the X-axis corresponding to your data set in the 'X-Axis Maintick Min Value' and 'X-Axis Maintick Max Value' attributes of the 'X-Axis' category.

4. Define the step size matching your data set for the 'X-Axis Maintick Steps' attribute of the 'X-Axis' category.

Items

List of all objects added

BarGraphColors 1:

Delete the selected object

BarGraphColors 2:

Change the object order (top = left)

BarGraphColors 3:

Add a new object

Category: Colors

Name

Description

Bar color

Definition of the color of the bar graph

Legend name

Definition of the legend name

Scale factor

Definition of the scale factor

Schema (version 1.8): tchmi:framework#/definitions/ChartBarGraphColorList

Schema (version 1.12): tchmi:framework#/definitions/TcHmi.Controls.Beckhoff.TcHmiBarChart.ChartBarGraphColorList

Attribute getter

public getBarGraphColors(): TcHmi.SolidColor[] | TcHmi.SolidColor | null;

Parameter

Name

Type

Description

-

-

-

Return value

Type

Description

TcHmi.SolidColor[], TcHmi.SolidColor, null

The current value of the attribute.

Attribute setter

public setBarGraphColors(valueNew: TcHmi.SolidColor[] | TcHmi.SolidColor | null): void;

Parameter

Name

Type

Description

valueNew

TcHmi.SolidColor[] | TcHmi.SolidColor, null

The new value of the attribute. If null is passed, the internal default value is used.

Return value

Type

Description

void

No return value.

BarGraphColors 4:

Available from 1.8

BarGraphColors 5:

Version 1.12

BarGraphColors 6:

This attribute is considered obsolete. Please use the attribute BarGraphDescription instead.