| title | Scatterplot chart |
|---|---|
| fileSource | d3-chart |
| tabs | Design('scatterplot-chart'), A11y('scatterplot-chart-a11y'), API('scatterplot-chart-api'), Examples('scatterplot-chart-code'), Changelog('scatterplot-chart-changelog') |
::: tip For core principles, concept description, API and changelog, refer to the D3 chart. :::
::: sandbox
<script lang="tsx"> export Demo from 'stories/components/d3-chart/docs/examples/scatterplot-chart/basic-usage.tsx'; </script>:::
::: tip
For all the following examples, scale is calculated taking into account synthetic data.
For understanding the mathematics, used in Change.Scatterplot to calculate common scale, refer to our GitHub repository.
:::
::: sandbox
<script lang="tsx"> export Demo from 'stories/components/d3-chart/docs/examples/scatterplot-chart/scatter-plot.tsx'; </script>:::
If required, you can assign your own color to Scatter plot.
::: sandbox
<script lang="tsx"> export Demo from 'stories/components/d3-chart/docs/examples/scatterplot-chart/color-customization.tsx'; </script>:::
::: sandbox
<script lang="tsx"> export Demo from 'stories/components/d3-chart/docs/examples/scatterplot-chart/scatter-plot-with-values-inside.tsx'; </script>:::
Note that for ChartLegend patterns property works only with default shape={'Checkbox'}.
::: sandbox
<script lang="tsx"> export Demo from 'stories/components/d3-chart/docs/examples/scatterplot-chart/legend-and-pattern-fill.tsx'; </script>:::
If required, you can assign your own color to Scatter plot.
::: sandbox
<script lang="tsx"> export Demo from 'stories/components/d3-chart/docs/examples/scatterplot-chart/color-customization-and-values-inside.tsx'; </script>:::
Use ScatterPlotChartSkeleton for the initial chart loading.
::: sandbox
<script lang="tsx"> export Demo from 'stories/components/d3-chart/docs/examples/scatterplot-chart/initial-data-loading.tsx'; </script>:::