Skip to main content
100%

D3: A simple, unstyled axis

✓ Published0🌍 Public
深深度碎片
Last edited Aug 2, 2016
Created on Aug 2, 2016

This example demonstrates a basic scatterplot rendered as an SVG, with red data-point labels and axes that adopt a default, unstyled appearance. Using D3 v4, the code loads a hardcoded array of coordinate pairs and applies linear scales to map the data to a 500-by-300-pixel drawing area. The `d3.axisBottom` and `d3.axisLeft` functions generate the x- and y-axes, while circles are placed and labeled via D3’s `selectAll` and `append` chain. Data is presented without any custom styling rules, highlighting raw axis output.

AI-generated description

Built with blockbuilder.org

gpl-3.0 Licensed

Similar vizzes