Construct

Construct

new Construct()

Source:

The base construct interface from which all graphs can inherit. Charts like:

  • Graph API
  • c3 graph abstractions

Methods

(abstract) destroy() → {object}

Source:

Destroys the graph.

Throws:
Returns:
  • inherited class instance
Type
object

(abstract) generate(input) → {object}

Source:

Uses the input JSON for generating a graph. Draw function that is called by the parent control. This draws the Axes, grid, legend and labels for the chart construct.

Parameters:
Name Type Description
input object

Input JSON

Throws:
Returns:
  • inherited class instance
Type
object

(abstract) loadContent(graphContent) → {object}

Source:

Load a content onto the graph. The content serves as a 1to1 relationship. For rendering multiple data sets respective number of content needs to be provided.

Parameters:
Name Type Description
graphContent object

Graph content

Throws:
Returns:
  • inherited class instance
Type
object

(abstract) resize() → {object}

Source:

Resizes the graph based on window resize event.

Throws:
Returns:
  • inherited class instance
Type
object

(abstract) unloadContent(graphContent) → {object}

Source:

Remove a Content from the chart.

Parameters:
Name Type Description
graphContent object

Graph content

Throws:
Returns:
  • inherited class instance
Type
object