bundle.js
index.js
styles.css
index.html
README.md
new fileforkset heightexportdelete
Let's make a face with D3.js
Resl411

import { select } from 'd3';

const svg = select('svg');

const circle = +svg.append('circle');

const width = +svg.attr('width');

const height = +svg.attr('height');

console.log(width);

circle.attr('r', height / 2);

circle.attr('cx', width / 2);

circle.attr('cy', height / 2);

All code in VizHub is released under the MIT License.