Skip to main content
100%

Neurohackweek 2017 D3 Tutorial

✓ Published0🌍 Public
Aakeshavan
Last edited Aug 31, 2017
Created on Aug 31, 2017

This example demonstrates a basic scatter plot with axes, built using D3.js version 4.10. The plot displays four data points with x and y coordinates, and the axes are generated using `d3.axisBottom` and `d3.axisLeft` with linear scales (`d3.scaleLinear`). The code defines helper functions for adding, removing, and randomizing data points, though these are not invoked in the visible script. The SVG rendering is set up with explicit margins and dimensions, and the plot is appended to an element with the ID `scatterArea`. The data is hardcoded as an array of objects, and the visualization is rendered entirely in the browser.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes