Timeline

<< 点击显示目录 >>

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

Timeline

Widget "Timeline" is used to create a timeline with a scale.

The following properties cannot be used in compound widget "Mapping":

zIndex, left, top, height, width

logo_use_case

For this widget, there is a use case that explains how the widget can be used.

Appearance

timeline_editor

timeline_runtime

Editor

Web browser

Properties

Name

Type

Description

Bindable

Necessary

Default value

areasPadding

UInteger

Defines the distance between the areas and the scale.

 

 

5

areasSize

UInteger

Defines the height of the areas.

 

 

50

data

String

Data for the timeline as a JSON string.

An element in the timeline has the following format: {"d":150, "c":0, "i":"Information"}

d: Duration of the entry in seconds.

c: Index of the color to be displayed (from colorList)

i: Additional information

Example with two elements:

[{"d":30, "c":2, "i":"Item_1"}, {"d":200, "c":3, "i":"Item_2"}]

check

 

 

enable

Boolean

Defines the usability of the widget. A disabled widget (enable=false) does not react to user interaction and does not trigger events. The "enable" behavior is inherited from the container widgets to the child widgets.

check

 

true

permissionOperate

RoleCollection

Defines the roles that are permitted to use the widget. For roles without sufficient rights, the widget does not react to user interaction and does not trigger events.

 

 

 

permissionView

RoleCollection

Defines the roles that are permitted to see the widget. For roles without sufficient rights, the widget is hidden.

 

 

 

scalePadding

UInteger

Defines the distance between the scale and the outer borders of the widget.

 

 

30

showScale

Boolean

Defines whether the scale is displayed.

 

 

true

startTime

DateTime

Starting time for the scale.

check

 

1970-01-01T00:00:00.000Z

style

StyleReference

Reference to a customizable widget style.

check

 

default

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

zIndex

UInteger

zIndex determines the z-order of the widget. With overlapping widgets, the zIndex determines which widget is on the top and which one is on the bottom. The widget with the larger zIndex is on top, and the one with the smaller zIndex is on the bottom. The zIndex must be unique within a piece of content or a container widget. The zIndex is automatically assigned by the visual editor and can therefore be changed via the toolbar.

 

check

 

left

Integer

Absolute position measured from the left border of the surrounded element (e.g. container widget or content).

 

 

 

top

Integer

Absolute position measured from the top border of the surrounded element (e.g. container widget or content).

 

 

 

height

Size

Defines the total height of the widget in pixels.

A value in % refers to the height of the surrounding element.

 

 

100

width

Size

Defines the total width of the widget in pixels.

A value in % refers to the width of the surrounding element.

 

 

800

infoBox

Boolean

Defines whether a box with information is displayed if an area of the widget is clicked.

 

 

true

startLabel

String

Defines the text displayed inside the information box before the starting time.

 

 

Start:

endLabel

String

Defines the text displayed inside the information box before the ending time.

 

 

End:

infoLabel

String

Defines the text displayed inside the information box before the actual information.

 

 

Information:

durationLabel

String

Defines the text displayed inside the information box before the duration.

 

 

Duration:

showInfoBoxStartTime

Boolean

Defines whether the starting time should be displayed in the information box.

 

 

true

showInfoBoxEndTime

Boolean

Defines whether the ending time should be displayed in the information box.

 

 

true

showInfoBoxDuration

Boolean

Defines whether the duration should be displayed in the information box.

 

 

false

showInfoBoxInfo

Boolean

Defines whether the actual information should be displayed in the information box.

 

 

true

tabIndex

Integer

Property tabIndex is used to manage the tab order during keyboard operation.

For additional information, see Keyboard operation.

ENTER triggers event Click if tabIndex ≥0.

 

 

-1

Styleable properties

Name

Type

Description

Default value

colorList

ColorList

Color list. Only hexadecimal color values are currently supported.

To determine the hex value of a color, see hex calculator.

'#FFCC66,#FF8800,#FFCC99,#993333'

backColor

Color

Defines the background color of the widget.

Transparent

backGroundGradient

Gradient

Defines the background color of the widget as a color gradient.

 

borderColor

Color

Defines the color of the border around the widget.

#000000

borderWidth

PixelVal

Defines the width of the border around the widget.

2px

borderStyle

BorderStyle

Defines the style of the border around the widget. Borders can be unbroken, dashed or dotted.

none

scaleColor

Color

Defines the color of the scale.

#000000

scaleWidth

PixelVal

Defines the width of the scale.

1px

ticksColor

Color

Defines the color of the primary tick marks.

#000000

ticksWidth

PixelVal

Defines the color of the secondary tick marks.

1px

scaleFontSize

PixelVal

Defines the font size of the numbers in the scale.

12px

scaleFontName

FontName

Defines the font of the numbers in the scale.

Arial

scaleTextColor

Color

Defines the text color of the numbers in the scale.

#000000

infoBoxOpacity

Opacity

Defines the transparency of the information box. The lower the value, the more transparent the information box.

100 %

Topics in this section:

Actions and events