Class: Grid

Grid(options)

A Grid visual adds vertical and optionally horizontal lines. The placement of vertical lines is derived from the axis ticks in the TimeFrame that contains the pane that contains this grid. Horizontal line spacing matches the vertical line spacing by default.

Constructor

new Grid(options)

Create a grid visual.
Parameters:
Name Type Description
options Object Configuration options.
Author:
  • Lawrence Fyfe
Source:

Methods

addProperty(name, value)

Add the specified property to this visual. The property is stored as [name, value].
Parameters:
Name Type Description
name string The name of the property.
value string The value of the property.
Source:

draw()

Draw this visual.
Source:

erase()

Erase this visual.
Source:

initialize(parentElement, width, height, timeScale)

Initialize this visual.
Parameters:
Name Type Description
parentElement Element The parent element.
width number The parent width.
height number The parent height.
timeScale d3.scaleLinear The time scale.
Source: