StackedValueAxis
Name: Stacked Value Axis
Description: Value axis for stacked data charts (currently
StackedBar) (default is Y axis)
params$
Type:
Partial<StackedValueAxisParams>Fields:
Name Description Type labelOffset Position of the axis label [number, number]labelColorType Color type of the axis label ColorTypeaxisLineVisible Visibility of the axis line booleanaxisLineColorType Color type of the axis line ColorTypeticks Interval of the ticks number | nulltickFormat Format of the ticks string | ((text: d3.NumberValue) => string | d3.NumberValuetickLineVisible Visibility of the tick lines booleantickPadding Padding of the ticks numbertickFullLine Full line for the ticks booleantickFullLineDasharray Dash array for the full line ticks stringtickColorType Color type of the ticks ColorTypetickTextRotate Rotation of the tick text numbertickTextColorType Color type of the tick text ColorType
Detailed Type
type ColorType = 'none' | 'label' | 'labelContrast' | 'primary' | 'secondary' | 'background'
- Default values:
{
labelOffset: [0, 0],
labelColorType: 'primary',
axisLineVisible: false,
axisLineColorType: 'primary',
ticks: null,
tickFormat: num => {
if (num === null || Number.isNaN(num) == true) {
return num || 0
}
var parts = num.toString().split('.')
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',')
return parts.join('.')
},
tickLineVisible: true,
tickPadding: 20,
tickFullLine: true,
tickFullLineDasharray: 'none',
tickColorType: 'secondary',
tickTextRotate: 0,
tickTextColorType: 'primary'
}