sgvizler.visualization.Text Class
Write text.
Any number of columns. Everything is displayed as text.
Constructor
sgvizler.visualization.Text
(
-
container
Parameters:
-
container
ObjectThe container element where the chart will be drawn.
Item Index
Methods
Methods
addListener
(
public
-
name
-
func
Add a function which is to be fired when the
listener named name
is fired.
See fireListener
Example:
addListener("ready", function () { console.log("Ready!") });
draw
(
public
-
data
-
[chartOptions]
Available options:
- 'cellSep' : string (can be html) to separate cells in each column. (default: ', ')
- 'cellPrefix : string (can be html) to prefix each cell with. (default: '')
- 'cellPostfix : string (can be html) to postfix each cell with. (default: '')
- 'rowPrefix : string (can be html) to prefix each row with. (default: '
')
- 'rowPostfix : string (can be html) to postfix each row with. (default: '')
- 'resultsPrefix : string (can be html) to prefix the results with. (default: '')')
- 'resultsPostfix : string (can be html) to postfix the results with. (default: '
Parameters:
-
data
google.visualization.DataTable -
[chartOptions]
Object optional
fireListener
(
public
-
name
Fires (runs, executes) all functions registered
on the listener name
.
See addListener
.
Parameters:
-
name
StringThe name of the listener.