API Docs for:
Show:

Graph Class

Defined in: src/core/graph.js:10
Module: core
Parent Module: multigraph

The Graph Jermaine model controls the properties for an individual Graph.

Constructor

Graph

()

Methods

findNearestAxis

(
  • x
  • y
  • orientation
)

Parameters:

  • x Object
  • y Object
  • orientation Object

initializeGeometry

(
  • width
  • height
  • graphicsContext
)

Initializes the Graph's geometry. Determines the width and height of the Graph's windowBox, paddingBox and plotBox; calls its Axes' and Legend's implementations of initializeGeometry.

Parameters:

  • width Integer

    Width of the multigraph's div

  • height Integer

    Height of the multigraph's div

  • graphicsContext Object

pauseAllData

()

registerCommonDataCallback

(
  • callback
)

Convience function for registering callback functions on the Graph's Data models. Adds dataReady event listeners to each of the Graph's Data models.

Parameters:

  • callback Function

resumeAllData

()

Properties

axes

Axis

Jermaine Attr_List of the Graph's Axes.

background

Background

Child model which controls the properties of the Graph's Background.

data

Data

Jermiane Attr_List of the Graph's Data sets.

legend

Legend

Child model which controls the properties of the Graph's Legend.

multigraph

The containing Multigraph object

paddingBox

Stores the computed width and height of the Graph's paddingBox.

plotarea

Plotarea

Child model which controls the properties of the Graph's Plotarea.

plotBox

Stores the computed width and height of the Graph's plotBox.

plots

Plot

Jermiane Attr_List of the Graph's Plots.

title

Title

Child model which controls the properties of the Graph's Title.

window

Window

Child model which controls the properties of the Graph's Window.

windowBox

Stores the computed width and height of the Graph's windowBox.