JSBarGraph3D

API for setting up and modifying 3D bar graph objects.

Create a API with Module.createBarGraph3D.

var object = Module.createBarGraph3D("ID");

Function

getId() → string

Returns the Key of the object.

  • Return

    • string: Successful return of the object's Key string.

    • null: If the object is null.

create(position, size) → boolean

Create a 3D graph object.

Name
Type
Description

position

Graph location coordinates (longitude, latitude, altitude).

size

Size of the graph.

insertColumn(name, label, color) → boolean

Adds Column information to the graph.

Name
Type
Description

name

string

Column distinction name.

label

string

Column name (displayed at the bottom of the graph).

color

Color of the graph bar.

insertRow(name, label) → boolean

Adds Row information to the graph.

Name
Type
Description

name

string

Row distinction name.

label

string

Row name (displayed at the bottom of the graph).

setAnimationSpeed(speed) → boolean

Sets the animation speed of the graph bars rising.

Name
Type
Description

speed

number

Animation speed of the bars rising (set between 0.1~1.0).

setColumnTextBackgroundColor(key, color) → boolean

Sets the background color of the Column label at the bottom of the graph bar.

Name
Type
Description

key

string

The key of the Column for which to change the text color.

color

Label background color.

  • Return

    • true : Setting successful.

    • false : Setting failed.

setColumnTextColor(key, outColor, fillColor) → boolean

Sets the background color of the Column label at the bottom of the graph bar.

Name
Type
Description

key

string

The key of the Column for which to change the text color.

outColor

Text outline color.

fillColor

Text fill color.

  • Return

    • true : Setting successful.

    • false : Setting failed.

setData(name, label, data) → boolean

Adds graph data for the specified Column and Row.

Name
Type
Description

name

string

Column distinction name.

label

string

Row distinction name.

data

number

Graph input value.

setUnitText(unit) → boolean

Sets the unit text displayed on the graph's height axis.

Name
Type
Description

unit

string

Unit display text.

setValueRange(min, max, value) → boolean

Sets the minimum and maximum values for the graph's height axis.

Name
Type
Description

min

number

Minimum value for the height axis.

max

number

Maximum value for the height axis.

value

number

Interval for the tick marks.

Getter / Setter

getDescription(), setDescription(desc) → string

Set a description for the object.

Name
Type
Description

desc

string

Object description string.

  • Return

    • string: Successful return of the object's description string.

    • null: If the object is null.

getName(), setName(name) → string

Sets the name of the object.

Name
Type
Description

name

string

The name to set for the object.

  • Return

    • string: Successful return of the object's name.

    • null: If the object is null.

getVisible(), setVisible(visible) → boolean

Sets the visibility state of an object.

Name
Type
Description

visible

boolean

true: Make the object visible. false: Hide the object.

  • Return

    • true: Object visible state.

    • false: Object hidden state.

Last updated