Skip to content

chartjs-plugin-hierarchical / HierarchicalScaleType

Interface: HierarchicalScaleType

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:295

Extends

Properties

attributes?

optional attributes: object

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:66

object of attributes that should be managed and extracted from the tree data structures such as backgroundColor for coloring individual bars the object contains the key and default value

Index Signature

[attribute: string]: any

Default

ts
{}

Inherited from

Partial.attributes


hierarchyBoxColor?

optional hierarchyBoxColor: string

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:54

color of the box to toggle collapse/expand

Inherited from

Partial.hierarchyBoxColor


hierarchyBoxLineHeight?

optional hierarchyBoxLineHeight: number

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:42

distance between two hierarchy indicators

Inherited from

Partial.hierarchyBoxLineHeight


hierarchyBoxSize?

optional hierarchyBoxSize: number

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:38

size of the box to draw

Inherited from

Partial.hierarchyBoxSize


hierarchyBoxWidth?

optional hierarchyBoxWidth: number

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:58

stroke width of the toggle box

Inherited from

Partial.hierarchyBoxWidth


hierarchyGroupLabelPosition?

optional hierarchyGroupLabelPosition: "center" | "first" | "last" | "between-first-and-second"

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:28

position of the hierarchy group label relative to the its children

Default

ts
between-first-and-second

Inherited from

Partial.hierarchyGroupLabelPosition


hierarchyLabelPosition?

optional hierarchyLabelPosition: null | "none" | "below" | "above"

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:22

position of the hierarchy label in expanded levels, 'none' to disable

Default

ts
'below'

Inherited from

Partial.hierarchyLabelPosition


hierarchySpanColor?

optional hierarchySpanColor: string

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:46

color of the line indicator hierarchy children

Inherited from

Partial.hierarchySpanColor


hierarchySpanWidth?

optional hierarchySpanWidth: number

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:50

stroke width of the line

Inherited from

Partial.hierarchySpanWidth


levelPercentage?

optional levelPercentage: number

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:12

ratio by which the distance between two elements shrinks the higher the level of the tree is. i.e. two two level bars have a distance of 1. two nested one just 0.75

Default

ts
0.75

Inherited from

Partial.levelPercentage


offset?

optional offset: true

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:68

If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to true for a bar chart by default.

Default

ts
false

Inherited from

Partial.offset


padding?

optional padding: number

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:17

padding of the first collapse to the start of the x-axis

Default

ts
25

Inherited from

Partial.padding


reverseOrder?

optional reverseOrder: boolean

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:73

if reverseOrder is true the lowest hierarchy level is on axis level and the highest level is the one furthest from axis

Default

ts
false

Inherited from

Partial.reverseOrder


static?

optional static: boolean

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:34

whether interactive buttons should be shown or whether it should be static

Default

ts
false

Inherited from

Partial.static


type

type: "hierarchical"

Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:296