Skip to main content

Interface: SeriesChartOpts

Defined in: packages/sdvtables/src/spec.ts:153

The options sparkline and sparkbar share (reactablefmtr react_sparkline / react_sparkbar).

Properties​

bandline?​

readonly optional bandline?: SeriesBand

Defined in: packages/sdvtables/src/spec.ts:161

A shaded band across the chart (reactablefmtr bandline).


bandlineColor​

readonly bandlineColor: string

Defined in: packages/sdvtables/src/spec.ts:163

The band's colour (reactablefmtr: red).


bandlineOpacity​

readonly bandlineOpacity: number

Defined in: packages/sdvtables/src/spec.ts:165

The band's opacity, 0 to 1.


chartHeight?​

readonly optional chartHeight?: number

Defined in: packages/sdvtables/src/spec.ts:180

The chart's height in px (reactablefmtr height). Default (undefined): 22, grown to 28 or 30 when labels sit above the points, as in reactablefmtr; any number given is used as is, 22 included.


chartWidth​

readonly chartWidth: number

Defined in: packages/sdvtables/src/spec.ts:182

The chart's width in px (width is the column's CSS width, as on every kind).


decimals​

readonly decimals: number

Defined in: packages/sdvtables/src/spec.ts:171

Decimal places of the value labels and the reference line label.


labels​

readonly labels: readonly SeriesPoint[]

Defined in: packages/sdvtables/src/spec.ts:167

Values to print by their point or bar ("all" prints every one); empty prints none.


labelSize​

readonly labelSize: string

Defined in: packages/sdvtables/src/spec.ts:169

The value labels' CSS font size.


maxValue?​

readonly optional maxValue?: number

Defined in: packages/sdvtables/src/spec.ts:175

The value at the top of every cell's chart; default: each series' own maximum (sparkbar: the higher of 0 and it).


minValue?​

readonly optional minValue?: number

Defined in: packages/sdvtables/src/spec.ts:173

The value at the bottom of every cell's chart; default: each series' own minimum (sparkbar: the lower of 0 and it).


statline?​

readonly optional statline?: SeriesStat

Defined in: packages/sdvtables/src/spec.ts:155

A dashed reference line across the chart, labelled at its right end.


statlineColor​

readonly statlineColor: string

Defined in: packages/sdvtables/src/spec.ts:157

The reference line's and its label's colour (reactablefmtr: red).


statlineLabelSize​

readonly statlineLabelSize: string

Defined in: packages/sdvtables/src/spec.ts:159

The reference line label's CSS font size.