generate_bar_chart
Generate a horizontal bar chart to show data for numerical comparisons among different categories, such as, comparing categorical data and for horizontal comparisons. Hosted by Darwin using AntV's public free renderer. Returns a PNG image. Accepts at most 50 rows with bounded image sizes. No API key is required; payments are not supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| group | No | Whether grouping is enabled. When enabled, bar charts require a 'group' field in the data. When `group` is true, `stack` should be false. | |
| stack | No | Whether stacking is enabled. When enabled, bar charts require a 'group' field in the data. When `stack` is true, `group` should be false. | |
| style | No | ||
| theme | No | Set the theme for the chart, optional, default is 'default'. | default |
| title | No | ||
| width | No | ||
| height | No | ||
| axisXTitle | No | ||
| axisYTitle | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| artifact | Yes | ||
| provenance | Yes | ||
| requestMetadata | Yes |