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

LineChart

Extends:

ChartAxisChart → LineChart

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

Constructor Summary

Public Constructor
public

Constructor used to set chart type

Member Summary

Public Members
public

The local collection of circles

public

The local collection of lines

public

oScaleX: *

public

Method Summary

Public Methods
public

renderChart(bReset: boolean)

Render the chart including lines, axes and labels

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.

From class AxisChart
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: *

public

Render the chart including axes and labels

public

Supersede the parent method to update local scaling objects

Public Constructors

public constructor() source

Constructor used to set chart type

Override:

AxisChart#constructor

Public Members

public aCircles: Array source

The local collection of circles

Properties:

NameTypeAttributeDescription
aCircles *

public aLines: Array source

The local collection of lines

Properties:

NameTypeAttributeDescription
aLines *

public oScaleX: * source

Override:

AxisChart#oScaleX

public sChartType: string source

Public Methods

public renderChart(bReset: boolean) source

Render the chart including lines, axes and labels

Override:

AxisChart#renderChart

Params:

NameTypeAttributeDescription
bReset boolean
  • optional
  • default: false