generate_scatter_chart
Create scatter charts to analyze data distribution, trends, and correlations. Detect outliers and visualize relationships between variables in two-dimensional or multi-dimensional space.
Instructions
Generate a scatter chart to visually display the distribution, clustering trends, and correlations of data points in two-dimensional or multi-dimensional space. Suitable for analyzing relationships between variables, outlier detection, and similar scenarios.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| background | No | Chart background color (hex). Optional, defaults to white. | |
| chartTheme | No | Chart theme. Optional, defaults to 'light'. | |
| colorField | No | Color grouping field. Should not duplicate the dimension field. | |
| colors | No | Color palette for chart elements. | |
| dataTable | Yes | Scatter chart data, e.g., [{ x: 34, y: 10, category: 'A' }]. | |
| height | No | Chart height. Optional, defaults to 500. | |
| output | No | Chart output type. Defaults to 'image'. | image |
| sizeField | No | Numeric field for bubble size. | |
| subTitle | No | Chart subtitle text. | |
| title | No | Chart title text. | |
| titleOrient | No | Title position in the chart. | |
| width | No | Chart width. Optional, defaults to 500. | |
| xAxisHasGrid | No | Show vertical grid lines for the X-axis. | |
| xAxisHasLabel | No | Show X-axis labels. | |
| xAxisHasTick | No | Show X-axis ticks. | |
| xAxisOrient | No | X-axis position in the chart. | |
| xAxisTitle | No | X-axis title. | |
| xAxisType | No | X-axis type: categorical ('band') or continuous ('linear'). | |
| xField | Yes | Measure field. Must be numeric and exist in the data. | |
| yAxisHasGrid | No | Show horizontal grid lines for the Y-axis. | |
| yAxisHasLabel | No | Show Y-axis labels. | |
| yAxisHasTick | No | Show Y-axis ticks. | |
| yAxisOrient | No | Y-axis position in the chart. | |
| yAxisTitle | No | Y-axis title. | |
| yAxisType | No | Y-axis type: categorical ('band') or continuous ('linear'). | |
| yField | Yes |