API Docs for: 0.6.0
Show:

sgvizler.visualization.DraculaGraph Class

Draws a graph with clickable and movable nodes.

Input format:

  • 7 columns, last three are optional.
  • each row represents a source node, a target node and an edge from source to target.
  • the URIs are the id's for the nodes, and make the nodes clickable.

Columns:

  1. sourceURI
  2. sourceLabel
  3. targetURI
  4. targetLabel
  5. edgeLabel
  6. sourceColor
  7. targetColor

Constructor

sgvizler.visualization.DraculaGraph

(
  • container
)

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

    The name of the listener.

  • func Function

    The function to fire.

Example:

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

draw

(
  • data
  • [chartOptions]
)
public

Defined in src/visualization/DraculaGraph.js:30

Available since 0.5.1

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

    The name of the listener.