API Docs for:
Show:

AxisTitle Class

Module: core
Parent Module: multigraph

Axis Title is a Jermaine model that supports the rendering of Axis Titles.

Constructor

AxisTitle

(
  • axis
)

Parameters:

Methods

initializeGeometry

(
  • graph
  • graphicsContext
)
chainable

Determines values for the position and anchor attributes if they were not set; determines the geometry of the content attribute. Called by Axis.initializeGeometry().

Parameters:

  • graph Graph
  • graphicsContext Object

render

() private

Renders the Axis Title. Overridden by implementations in graphics drivers.

render

(
  • context
)
chainable

Provided by the canvas module.

Defined in src/graphics/canvas/axis_title.js:10

Renders the axis title using the Canvas driver.

Parameters:

  • context HTMLCanvasObject

render

(
  • paper
  • set
)
chainable

Provided by the raphael module.

Defined in src/graphics/raphael/axis_title.js:29

Renders the axis title using the Raphael driver.

Parameters:

  • paper Paper
  • set Set

Properties

anchor

Point

The value which gives the location of the Title's anchor point to be attached to the base point.

angle

Number

The value which determines the rotation of the Title in degrees.

axis

Axis

Pointer to the Title's parent Axis jermiane model.

base

Number

The value which gives the location of the base point relative to the Title's Axis.

content

Text

The value which is used as the title string.

position

Point

A coordinate pair of pixel offsets for the base point.