Reference Source
import AxisChart from 'd-theia/src/components/AxisChart.js'
public class | source

AxisChart

Extends:

Chart → AxisChart

Direct Subclass:

BarChart, LineChart

Create AxisChart from the supplied data, based on the supplied JSON config.

Constructor Summary

Public Constructor
public

constructor(oParams: Object)

Constructor function supersedes parent class.

Member Summary

Public Members
public

The d3 object for the chart's axis

public

The d3 object for the chart's group

public
public
public
public

jPadding: {"l": number, "r": number, "t": number, "b": number}

public

The chart's axis object

public

The chart's key object

public

oScaleX: *

public

oScaleY: *

Method Summary

Public Methods
public

Render the chart including axes and labels

public

Supersede the parent method to update local scaling objects

Inherited Summary

From class Chart
public

The chart's data

public

SVG d3 object for d3 operations on the chart

public

DOM reference to container element that wraps SVG

public

DOM reference to loader display element

public

SVG DOM object for displaying the chart

public

The current calculated height of the chart

public

The width before any browser resize

public

The current calculated inner height of the chart

public

The current calculated inner width of the chart

public
public

Default time for d3 transitions on the chart

public

The current calculated width of the chart

public

The chart's config object

public

The padding for the chart within the container

public
public
public

Chart's tooltip object

public

init(): *

Check chart is ready and render.

public

setConfig(jConfig: Object)

Sets the local config options for the chart.

public

setContainer(dContainer: Object)

Sets the local container object.

public

setData(aData: Array, bTransform: Boolean)

Sets the local data for the chart.

public

Sets the local chart dimensions based on the size of the container.

public

updateConfig(jConfig: JSON)

Updates the local config for the chart.

public

updateData(aData: Array, bTransform: Boolean)

Updates the local data for the chart.

Public Constructors

public constructor(oParams: Object) source

Constructor function supersedes parent class.

Override:

Chart#constructor

Params:

NameTypeAttributeDescription
oParams Object

same as Chart

Public Members

public d3AxisGroup: Object source

The d3 object for the chart's axis

Properties:

NameTypeAttributeDescription
d3AxisGroup *

public d3ChartGroup: Object source

The d3 object for the chart's group

Properties:

NameTypeAttributeDescription
d3ChartGroup *

public iMaxValue: * source

public iMinValue: * source

public iSection: * source

public jPadding: {"l": number, "r": number, "t": number, "b": number} source

The padding for the chart within the container

Override:

Chart#jPadding

public oAxis: Object source

The chart's axis object

Properties:

NameTypeAttributeDescription
oAxis *

public oKey: Object source

The chart's key object

Properties:

NameTypeAttributeDescription
oKey *

public oScaleX: * source

public oScaleY: * source

Public Methods

public renderChart() source

Render the chart including axes and labels

public setDimensions() source

Supersede the parent method to update local scaling objects

Override:

Chart#setDimensions