OverlappingStackedValueAxes
Name: Overlapping Stacked Value Axes
Description:
- Draws two value axes (left Y-axis and right Y-axis) in the same plotting area, corresponding to the first two grid data by default. The first Y-axis is used for stacked data charts (currently
MultiStackedBar), corresponding to the first grid (data$index [0]); the second Y-axis is used for non-stacked data charts (e.g.,MultiLines), corresponding to the second grid (data$index [1]). - Unlike
MultiValueAxis,dataFormatter$'sseparateGridmust befalseto correctly draw in the same plotting area.
- Draws two value axes (left Y-axis and right Y-axis) in the same plotting area, corresponding to the first two grid data by default. The first Y-axis is used for stacked data charts (currently
params$
Type:
DeepPartial<OverlappingStackedValueAxesParams>Fields:
Name Description Type firstAxis Settings for the first (left) Y-axis ObjectsecondAxis Settings for the second (right) Y-axis ObjectgridIndexes Indexes of the corresponding data$grid data, can correspond to one or more grid datanumber[] | 'all'params.firstAxisandparams.secondAxisName 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 ColorType
Detailed Types
type ColorType = 'none' | 'label' | 'labelContrast' | 'primary' | 'secondary' | 'background'
- Default values:
{
firstAxis: {
labelOffset: [0, 0],
labelColorType: 'primary',
axisLineVisible: false,
axisLineColorType: 'primary',
ticks: 4,
tickFormat: ',.0f',
tickLineVisible: true,
tickPadding: 20,
tickFullLine: true,
tickFullLineDasharray: 'none',
tickColorType: 'secondary',
tickTextRotate: 0,
tickTextColorType: 'primary',
},
secondAxis: {
labelOffset: [0, 0],
labelColorType: 'primary',
axisLineVisible: false,
axisLineColorType: 'primary',
ticks: 4,
tickFormat: ',.0f',
tickLineVisible: true,
tickPadding: 20,
tickFullLine: true,
tickFullLineDasharray: 'none',
tickColorType: 'secondary',
tickTextRotate: 0,
tickTextColorType: 'primary',
},
gridIndexes: [0, 1]
}