generate_dual_axes_chart
Create a dual axes chart to visualize trends and comparisons by integrating a bar and line chart, ideal for analyzing metrics like sales and profit over time.
Instructions
Generate a dual axes chart which is a combination chart that integrates two different chart types, typically combining a bar chart with a line chart to display both the trend and comparison of data, such as, the trend of sales and profit over time.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
axisXTitle | No | Set the x-axis title of chart. | |
categories | Yes | Categories for dual axes chart, such as, ['2015', '2016', '2017']. | |
height | No | Set the height of chart, default is 400. | |
series | Yes | Series for dual axes chart, such as, [{ type: 'column', data: [91.9, 99.1, 101.6, 114.4, 121], axisYTitle: '销售额' }, { type: 'line', data: [0.055, 0.06, 0.062, 0.07, 0.075], 'axisYTitle': '利润率' }]. | |
theme | No | Set the theme for the chart, optional, default is 'default'. | default |
title | No | Set the title of chart. | |
width | No | Set the width of chart, default is 600. |