API Docs for: 0.6.0
Show:

sgvizler.charts.Chart Class

Defined in: src/charts.js:63

Inner class which all chart types created by sgvizler.charts inherit from, i.e., don't create new charts from this class, but use sgvizler.charts.create() instead.

Constructor

sgvizler.charts.Chart

(
  • container
)

Defined in src/charts.js:63

Parameters:

  • container Object

    The container element where the chart will be drawn.

Item Index

Methods

addListener

(
  • name
  • func
)
public

Defined in 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><p><p><p><p><p>The name of the listener.</p></p></p></p></p></p></p></p>

  • func Function

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

Example:

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

fireListener

(
  • name
)
public

Defined in 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><p><p><p><p><p>The name of the listener.</p></p></p></p></p></p></p></p>