File size: 1,944 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
flavors:
  - flavor: svg
    path: /scatterplot/
  - flavor: canvas
    path: /scatterplot/canvas/

ScatterPlot:
  package: '@nivo/scatterplot'
  tags: []
  stories:
    - label: Using custom node
      link: scatterplot--custom-node
    - label: Using time scales
      link: scatterplot--using-time-scales
    - label: Using logarithmic scales
      link: scatterplot--using-logarithmic-scales
    - label: Varying node size
      link: scatterplot--varying-node-size
    - label: Custom tooltip
      link: scatterplot--custom-tooltip
    - label: Synchronizing charts
      link: scatterplot--synchronizing-charts
    - label: Using mouse enter/leave
      link: scatterplot--using-mouse-enter-leave
  description: |
    A scatter plot chart, which can display several data series.

    It lets you plot data on 2 dimensions, **x** & **y**, and can optionally
    show a third quantitative dimension if you enable **dynamic node size**,
    please have a look at the `nodeSize` property for further information.

    It also offers another
    implementation, see [ScatterPlotCanvas](self:/scatterplot/canvas).
    You can also see more example usages in
    [the storybook](storybook:scatterplot--default).

    You can also enable a voronoi mesh to capture user's
    interactions, using the `useMesh` property.

    See the [dedicated guide](self:/guides/legends) on how to setup
    legends for this component.

ScatterPlotCanvas:
  package: '@nivo/scatterplot'
  tags:
    - canvas
  stories:
    - label: Using time scales
      link: scatterplot--using-time-scales
    - label: Varying node size
      link: scatterplot--varying-node-size
    - label: Custom tooltip
      link: scatterplot--custom-tooltip
  description: |
    A variation around the [ScatterPlot](self:/scatterplot) component.
    Well suited for large data sets as it does not impact DOM tree depth,
    however you'll lose the isomorphic ability and transitions.