Skip to content

Latest commit

 

History

History
92 lines (58 loc) · 2.21 KB

File metadata and controls

92 lines (58 loc) · 2.21 KB
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. :::

Basic usage

::: 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. :::

Advanced usage

::: sandbox

<script lang="tsx"> export Demo from 'stories/components/d3-chart/docs/examples/scatterplot-chart/scatter-plot.tsx'; </script>

:::

Color customization

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>

:::

Displaying values in dots

::: sandbox

<script lang="tsx"> export Demo from 'stories/components/d3-chart/docs/examples/scatterplot-chart/scatter-plot-with-values-inside.tsx'; </script>

:::

Legend and pattern fill

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>

:::

Dot values and custom colors

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>

:::

Initial data loading

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>

:::