Dual Axes Chart

A dual-axes chart is a combination chart that combines two different chart types, typically displaying a column chart and a line chart together. By using two vertical Y-axes (left and right) in one chart, it corresponds to different numerical dimensions. The column chart shows the magnitude or quantity of one set of data, while the line chart shows the trend of another set of data. Dual-axes charts are ideal for simultaneously displaying trends of different types of data.

Use Cases

  • Simultaneously display two data series with different magnitudes, such as sales and growth rate.
  • Compare the relative trend changes of two sets of variables, such as simultaneously observing sales volume and profit rate over a time period.
  • Data dimensions differ but share a common X-axis (e.g., time, category).

Visual Examples

Show the correlated trend of monthly sales (column) and profit rate (line).

Show weekly active users (column) and growth rate (line) trends, with custom colors.

Show quarterly revenue (column) and profit rate, cost rate (dual lines) trends, with custom colors

Options

Configuration Options

PropertyTypeRequiredDescription
typestringrequiredValue must be "dual-axes".
categoriesstring[]requiredX-axis categories.
titlestringoptionalChart title.
axisXTitlestringoptionalX-axis title.
seriesObject[]requiredChart composition, each object represents a basic chart.
series.type'column' | 'line'required"column" for column chart, "line" for line chart.
series.datanumber[]requiredBasic chart data.
series.axisYTitlestringoptionalY-axis title for this series.
theme'default' | 'dark' | 'academy'optionalChart theme, default is "default".
styleObjectoptionalChart style.
style.backgroundColorstringoptionalMust be a valid color value.
style.palettestring[]optionalMust be an array of valid color values.
style.startAtZerobooleanoptionalWhether the Y-axis starts from zero, default is false.