CirclesWithG.tsx 261 Bytes
Newer Older
Yoon, Daeki's avatar
Yoon, Daeki committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import React from "react";

type Props = {
  dataset: number[][];
};

export const CirclesWithG = ({ dataset }: Props) => {
  return (
    <g>
      {dataset.map((d) => (
        <circle key={d[0]} cx={d[0]} cy={d[1]} r={3}></circle>
      ))}
    </g>
  );
};