chartjs-plugin-hierarchical / IHierarchicalScaleOptions
Interface: IHierarchicalScaleOptions 
Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:7
Extends 
CategoryScaleOptions
Properties 
attributes 
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 
{}hierarchyBoxColor 
hierarchyBoxColor:
string
Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:54
color of the box to toggle collapse/expand
hierarchyBoxLineHeight 
hierarchyBoxLineHeight:
number
Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:42
distance between two hierarchy indicators
hierarchyBoxSize 
hierarchyBoxSize:
number
Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:38
size of the box to draw
hierarchyBoxWidth 
hierarchyBoxWidth:
number
Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:58
stroke width of the toggle box
hierarchyGroupLabelPosition 
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 
between-first-and-secondhierarchyLabelPosition 
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 
'below'hierarchySpanColor 
hierarchySpanColor:
string
Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:46
color of the line indicator hierarchy children
hierarchySpanWidth 
hierarchySpanWidth:
number
Defined in: work/chartjs-plugin-hierarchical/chartjs-plugin-hierarchical/src/scale/hierarchical.ts:50
stroke width of the line
levelPercentage 
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 
0.75offset 
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 
falseOverrides 
CategoryScaleOptions.offset
padding 
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 
25reverseOrder 
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 
falsestatic 
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 
false