Export Image
Export Code

Fork of Scatter Plot Simple

zach b.

Last edited Jun 01, 2023
Created on Jun 01, 2023

A scatter plot of the Iris Dataset with no axes.


fuffed around to make the SVG responsive. but running into problems with the content inside the iframe still reporting it's 960px wide.

changes

used:

.attr('viewBox', `0 0 ${width} ${height}`);

istead of:

.attr('width', width)
.attr('height', height);

in viz.js

&&

used:

width: clamp(350px, 50%, 800px);

in styles.css

MIT Licensed