Mirek - D3 Scatter Plot
✓ Published0🌍 Public
This example shows a scatter plot of the Iris dataset, mapping petal length on the x-axis and sepal length on the y-axis. It uses the d3.csv loader to fetch data from a remote gist URL, then applies d3.scaleLinear with d3.extent to derive continuous scales for each axis. The plot is rendered as an SVG via d3.select and append, with circles positioned through data marks and axes drawn using d3.axisLeft and d3.axisBottom. The chart fills the entire browser window, with margins applied around the plot area.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed