ScatterPlot
TheScatterPlot component visualizes individual data points on a two-dimensional chart, making it ideal for showing correlations, distributions, and relationships between two variables.
Props
Data Props
Query result or array of objects containing the data to visualize
Column name for the x-axis values
Column name for the y-axis values
Column name to group data into multiple series
Point Style Props
Shape of points: ‘circle’ | ‘square’ | ‘triangle’ | ‘diamond’ | ‘pin’ | ‘arrow’
Size of the points in pixels
Fill color for points (hex, rgb, or theme color name)
Opacity of points (0-1). Note: affects both fill and outline due to ECharts limitation
Color for point outlines
Width of point outlines in pixels
Formatting Props
Format string for x-axis values
Format string for y-axis values
Chart Layout Props
Chart title displayed at the top
Chart subtitle displayed below the title
Whether to show the legend
Height of the chart area in pixels
Axis Props
Title for x-axis. Use
true to use column nameTitle for y-axis. Use
true to use column nameShow vertical gridlines
Show horizontal gridlines
Show labels on x-axis
Show labels on y-axis
Show x-axis baseline
Show y-axis baseline
Show tick marks on x-axis
Show tick marks on y-axis
Axis Scale Props
Type of x-axis: ‘category’ | ‘time’ | ‘value’
Use logarithmic scale for y-axis
Base for logarithmic y-axis
Minimum value for x-axis
Maximum value for x-axis
Minimum value for y-axis
Maximum value for y-axis
Tooltip Props
Custom title for tooltip
Series Props
Color palette name or array of colors
Object mapping series names to colors
Array specifying the order of series
Format string for series labels
Behavior Props
Sort data before rendering
Connect charts for synchronized interactions
Advanced Props
Custom ECharts configuration object
Custom series configuration
Print ECharts config to console
Renderer type: ‘canvas’ | ‘svg’
Enable data download
Enable image download
Empty data behavior: ‘pass’ | ‘warn’ | ‘error’
Custom empty data message
Left padding for chart area
Right padding for chart area