OrbCharts Docs
Docs
Home
Github
  • English
  • 繁體中文
Docs
Home
Github
  • English
  • 繁體中文
  • Guide
  • Basic Concepts

    • 6 Data Formats
    • Core Technologies
  • Get Started !

    • Installation
    • Examples
  • Basic Usage

    • Creating Charts
    • Using Presets
    • Drawing Charts
    • Data Labels
  • Chart API

    • plugins$
    • data$
    • chartParams$
    • dataFormatter$
    • event$
    • destroy()
  • Plugins

    • Create Plugin
    • Series

      • Bubbles
      • Pie
      • PieEventTexts
      • PieLabels
      • Rose
      • RoseLabels
      • SeriesLegend
      • SeriesTooltip
    • Grid

      • Bars
      • BarsPN
      • BarsTriangle
      • Dots
      • GridLegend
      • GridTooltip
      • GroupAux
      • GroupAxis
      • GroupZoom
      • Lines
      • LineAreas
      • StackedBars
      • StackedValueAxis
      • ValueAxis
    • MultiGrid

      • MultiBars
      • MultiBarsTriangle
      • MultiDots
      • MultiGridLegend
      • MultiGridTooltip
      • MultiGroupAxis
      • MultiStackedBars
      • MultiStackedValueAxis
      • MultiValueAxis
      • OverlappingValueAxes
      • OverlappingStackedValueAxes
    • MultiValue

      • MultiValueLegend
      • MultiValueTooltip
      • OrdinalAux
      • OrdinalAxis
      • OrdinalBubbles
      • OrdinalZoom
      • RacingBars
      • RacingCounterTexts
      • RacingValueAxis
      • Scatter
      • ScatterBubbles
      • XYAux
      • XYAxes
      • XYZoom
    • Relationship

      • ForceDirected
      • ForceDirectedBubbles
      • RelationshipLegend
      • RelationshipTooltip
    • Tree

      • TreeLegend
      • TreeMap
      • TreeTooltip

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$'s separateGrid must be false to correctly draw in the same plotting area.
  • Playground Example

params$

  • Type: DeepPartial<OverlappingStackedValueAxesParams>

  • Fields:

    NameDescriptionType
    firstAxisSettings for the first (left) Y-axisObject
    secondAxisSettings for the second (right) Y-axisObject
    gridIndexesIndexes of the corresponding data$ grid data, can correspond to one or more grid datanumber[] | 'all'
  • params.firstAxis and params.secondAxis

    NameDescriptionType
    labelOffsetPosition offset[number, number]
    labelColorTypeColor type for the labelColorType
    axisLineVisibleVisibility of the axis lineboolean
    axisLineColorTypeColor type for the axis lineColorType
    ticksNumber of ticksnumber | null
    tickFormatFormat for the ticksstring | ((text: d3.NumberValue) => string | d3.NumberValue
    tickLineVisibleVisibility of the tick linesboolean
    tickPaddingPadding for the ticksnumber
    tickFullLineFull line for the ticksboolean
    tickFullLineDasharrayDash array for the full line ticksstring
    tickColorTypeColor type for the ticksColorType
    tickTextRotateRotation for the tick textnumber
    tickTextColorTypeColor type for the tick textColorType
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]
}