Image
Code

Let's make a face with D3.js

Resl411

Last edited Nov 06, 2019
Created on Nov 06, 2019

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);

MIT Licensed