Class LineChart

A line chart containing X/Y axes, key and tooltip.

Hierarchy

Constructors

Properties

axis: Axis

The chart's axis object instance

axisGroup: AxisSelection

The d3 object for the chart's axis

chartConfig: AxisChartConfig

The chart's config object

chartData: ChartData

The chart's data array

chartOutWatcher: ChartEventListener

An event watcher for the user moving the mouse out of the chart

chartType: ChartType = 'bar'

The chart's type

d3ChartGroup: AxisSelection

The d3 object for the chart's group

SVG d3 object for d3 operations on the chart

dataSlice: number = 0

The section of data to show

doTransform: boolean

Whether to transform keys from an unknown data schema

height: number

The current calculated height of the chart

innerHeight: number

The current calculated inner height of the chart

innerWidth: number

The current calculated inner width of the chart

key: Key

The chart's key object instance

maxValue: number = 0

The chart's max value

minValue: number = 0

The chart's min value

padding: Padding = ...

The padding for the chart within the container

resizeOffset: number = 0

The chart's resize offset

resizeWatcher: ChartEventListener

An event watcher for the user resizing the browser

scaleX: ScaleBand<string> | ScalePoint<string>

The chart's x scale

scaleY: ScaleLinear<number, number, never>

The chart's y scale

svg: SVGSVGElement

SVG DOM object for displaying the chart

tooltip: Tooltip

Chart's tooltip object instance

transitionTime: number = 500

Default time for d3 transitions on the chart

typeCount: number = 0

The previous count of types for cleanup

width: number

The current calculated width of the chart

Methods

Generated using TypeDoc