API Docs for: 0.6.0
Show:

sgvizler.visualization.List Class

Available since 0.3.0

Make a html list, either numbered (ol) or bullets (ul). Each row becomes a list item.

Any number of columns in any format. Everything is displayed as text.

Constructor

sgvizler.visualization.List

(
  • container
)

Defined in src/visualization/List.js:2

Available since 0.3.0

Parameters:

  • container Object

    The container element where the chart will be drawn.

Item Index

Methods

addListener

(
  • name
  • func
)
public

Inherited from sgvizler.charts.Chart: src/charts.js:80

Available since 0.6.0

Add a function which is to be fired when the listener named name is fired.

See fireListener

Parameters:

  • name String

    <p><p><p>The name of the listener.</p></p></p>

  • func Function

    <p><p><p>The function to fire.</p></p></p>

Example:

addListener("ready", function () { console.log("Ready!") });

draw

(
  • data
  • [chartOptions]
)
public

Defined in src/visualization/List.js:17

Available since 0.3.0

Available options:

  • 'list' : "ol" / "ul" (default: "ul")
  • 'cellSep' : string (can be html) to separate cells in row. (default: ', ')
  • 'rowPrefix : string (can be html) to prefix each row with. (default: '')
  • 'rowPostfix : string (can be html) to postfix each row with. (default: '')

Parameters:

  • data google.visualization.DataTable
  • [chartOptions] Object optional

fireListener

(
  • name
)
public

Inherited from sgvizler.charts.Chart: src/charts.js:103

Available since 0.6.0

Fires (runs, executes) all functions registered on the listener name.

See addListener.

Parameters:

  • name String

    <p><p><p>The name of the listener.</p></p></p>