MultiStackedValueAxis
Name: Multi Stacked Value Axis
Description: Functions similarly to the
StackedValueAxisin the Grid data category, used for stacked data charts (currentlyMultiStackedBar) as the value axis (default is Y-axis).
params$
Type:
Partial<MultiStackedValueAxisParams>Fields:
Name Description Type labelOffset Position offset [number, number]labelColorType Color type for the label ColorTypeaxisLineVisible Visibility of the axis line booleanaxisLineColorType Color type for the axis line ColorTypeticks Number of ticks number | nulltickFormat Format for the ticks string | ((text: d3.NumberValue) => string | d3.NumberValuetickLineVisible Visibility of the tick lines booleantickPadding Padding for the ticks numbertickFullLine Full line for the ticks booleantickFullLineDasharray Dash array for the full line ticks stringtickColorType Color type for the ticks ColorTypetickTextRotate Rotation for the tick text numbertickTextColorType Color type for the tick text ColorTypegridIndexes Indexes of the corresponding data$grid data, can correspond to one or more grid datanumber[] | 'all'
Detailed Types
type ColorType = 'none' | 'label' | 'labelContrast' | 'primary' | 'secondary' | 'background'
- Default values:
{
labelOffset: [0, 0],
labelColorType: 'primary',
axisLineVisible: false,
axisLineColorType: 'primary',
ticks: 4,
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',
gridIndexes: [0]
}