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.
Return
true : Object creation successful.
false : Object creation failed.
Sample
Refer to function createGraph.
insertColumn(name, label, color) → boolean
Adds Column information to the graph.
name
string
Column distinction name.
label
string
Column name (displayed at the bottom of the graph).
Return
true: Addition successful.
false: Addition failed.
Sample
Refer to function createGraph.
insertRow(name, label) → boolean
Adds Row information to the graph.
name
string
Row distinction name.
label
string
Row name (displayed at the bottom of the graph).
Return
true: Addition successful.
false: Addition failed.
Sample
Refer to function createGraph.
setAnimationSpeed(speed) → boolean
Sets the animation speed of the graph bars rising.
speed
number
Animation speed of the bars rising (set between 0.1~1.0).
Return
true : Speed setting successful.
false : Speed setting failed.
Sample
Refer to function createGraph.
setColumnTextBackgroundColor(key, color) → boolean
Sets the background color of the Column label at the bottom of the graph bar.
key
string
The key of the Column for which to change the text 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.
setData(name, label, data) → boolean
Adds graph data for the specified Column and Row.
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
Refer to function createGraph.
setUnitText(unit) → boolean
Sets the unit text displayed on the graph's height axis.
unit
string
Unit display text.
Return
true : Unit text setting successful.
false : Unit text setting failed.
Sample
Refer to function createGraph.
setValueRange(min, max, value) → boolean
Sets the minimum and maximum values for the graph's height axis.
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
Refer to function createGraph.
Getter / Setter
getDescription(), setDescription(desc) → string
Set a description for the object.
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
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.
visible
boolean
true: Make the object visible. false: Hide the object.
Return
true: Object visible state.
false: Object hidden state.
Last updated