XAxis

<< 点击显示目录 >>

主页  mappView帮助助手 > mapp View帮助信息 > Widgets  > Chart  > XYChart  >

XAxis

The x-axis collection defines the x-axis of the XYChart graph.

A maximum of 8 x-axes can be used in one graph.

Appearance

xychart_xaxis_editor

xychart_runtime

Editor

Web browser

Properties

Name

Type

Description

Bindable

Necessary

Default value

numberOfTicks

UInteger

Defines the number of subdivisions.

The initial value is not included.

check

 

5

position

VerticalAlign

Defines whether the x-axis is positioned at the bottom or top of the graph.

 

 

bottom

style

StyleReference

Reference to a customizable widget style.

check

 

default

unit

MeasurementSystemUnit

Defines the unit code of the widget.

check

 

 

format

MeasurementSystemFormat

Defines the format in which the data is displayed.

check

 

{'metric':{ 'decimalPlaces' : 1, 'minimumInteger-Digits' : 1 }, 'imperial' :{ 'decimal-Places' : 1, 'minimumIntegerDigi-ts' : 1 }, 'imperial-us' :{ 'decimal-Places' : 1, 'minimumIntegerDigits' : 1 }}

max

Number

Defines the maximum range if rangeMode is set to "fromConfiguration". This value has no unit and is not converted.

check

 

 

min

Number

Defines the minimum range if rangeMode is set to "fromConfiguration". This value has no unit and is not converted.

check

 

 

rangeMode

RangeMode

Defines which minimum and maximum values are used for the y-axis.

If rangeMode "fromConfiguration" is used, the range is static and not converted.

 

 

autoscale

showUnit

Boolean

Defines whether the unit should be displayed. A node binding is necessary for this.

 

 

true

title

String

Defines the title of the x-axis. A static text or text from the text system can be used.

 

 

 

visible

Boolean

Defines the visibility of the widget. The widget can be hidden with visible=false. (visible = true, hidden = false). The "visible" behavior is inherited from the container widget to the child widgets.

check

 

true

Styleable properties

Name

Type

Description

Default value

gridColor

Color

Defines the color used to display the graph grid.

#DBDBDB

color

Color

Defines the color used to display the y-axis and ticks of the widget.

#000000

textColor

Color

Defines the color used to display the x-axis texts.

#000000

disabledTextColor

Color

Defines the color used to display the x-axis texts in the disabled state.

#808080

fontName

FontName

Defines the font used to display x-axis texts.

Arial

fontSize

PixelVal

Defines the size used to display the x-axis texts.

12px

titleTextColor

Color

Defines the color used to display the x-axis title.

#000000

titleFontSize

PixelVal

Defines the size of the font used to display the x-axis title.

12px

titleFontName

FontName

Defines the font used to display the x-axis title.

Arial

tickLabelRotation

Rotation

Defines the rotation of the x-axis texts, e.g. a value of 90 degrees changes the rotation of the widget by 90 degrees clockwise.

0deg