Scatter
Ant Design
The Scatter component is Ant Design's scatter chart. It plots rows as points by two numbers, to show how they relate, such as deal size against days to close.
Properties​
Property | Description | Expected Value |
|---|---|---|
| Data | Rows to chart, one per point, such as [{ x: 12, y: 34 }]. | Array |
| X field | Field in each row that holds the number on the horizontal axis. | Text. Default: x |
| Y field | Field that holds the number on the vertical axis. With a list of fields, only the first is plotted. | Array. Default: ["y"] |
| Color field | Field that names each point's group. Each group gets its own color. | Text |
| Title | Heading shown above the chart. | Text |
| Legend | Where the legend sits, or none to hide it. The legend shows only when the chart has more than one series. | top, bottom, right, none. Default: top |
| Label | Shows each data point's value on the chart. | On or off. Default: Off |
| Y formatter | How values on the value axis, labels and tooltips are written. auto keeps whole numbers whole and others to two decimals, percent reads 0.25 as 25%, and compact shortens large numbers to 12K or 1.2M. | auto, number, currency, percent, compact. Default: compact |
| Currency | Currency code, such as USD or EUR, used when Y formatter is currency. | Text. Default: USD |
| Locale | Locale for number formatting, such as pt-BR. Leave it empty to follow the currency's usual format. | Text |
| Highlight clicked point | Keeps the point the user clicked highlighted and fades the others until Clear clicked point runs. | On or off. Default: Off |
| Size field | Number field that sets each point's size, which turns the chart into a bubble chart. | Text |
Additional Actions​
Each of these can be switched on or off, or set with a logical expression by clicking fx.
Property | Description | Expected Value |
|---|---|---|
| Visibility | Shows or hides the component. Hidden components keep their space unless Collapse when hidden is on. | On or off. Default: On |
| Collapse when hidden | Removes the hidden component's space, so the components below it move up. | On or off. Default: Off |
| Loading state | Shows the component's loading look and blocks interaction, for example while a query runs. | On or off. Default: Off |
| Disable | Stops the user from interacting with the component. | On or off. Default: Off |
Devices​
Property | Description | Expected Value |
|---|---|---|
| Show on desktop | Shows the component in the desktop layout. | On or off. Default: On |
| Show on mobile | Shows the component in the mobile layout. | On or off. Default: Off |