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.

  • Return

    • true : Object creation successful.

    • false : Object creation failed.

  • Sample

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.

  • Return

    • true: Addition successful.

    • false: Addition failed.

  • Sample

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).

  • Return

    • true: Addition successful.

    • false: Addition failed.

  • Sample

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).

  • Return

    • true : Speed setting successful.

    • false : Speed setting failed.

  • Sample

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.

  • Return

    • true : Data addition successful.

    • false : Data addition failed.

  • Sample

setUnitText(unit) → boolean

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

Name
Type
Description

unit

string

Unit display text.

  • Return

    • true : Unit text setting successful.

    • false : Unit text setting failed.

  • Sample

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.

  • Return

    • true : Size setting successful.

    • false : Size setting failed.

  • Sample

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