Skip to main content
100%

Fork of Making a Barchart

✓ Published0🌍 Public
VVineela Reddy
Last edited Mar 22, 2023
Created on Mar 22, 2023
Forked from Making a Barchart

This example displays a bar chart of blood pressure by patient age, using medical data from a CSV file with diabetes-related measurements. The visualization maps age to the x-axis with a linear scale and blood pressure to the y-axis with a band scale, rendering steel-blue rectangles. The code uses d3.csv to load the data, d3.scaleLinear and d3.scaleBand for scaling, and d3.axisLeft and d3.axisBottom to generate the axes, all drawn as SVG elements within a fixed-width container.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes