🌍 Public
Viewing a saved revision (read-only)
ae6f7a87a0454b4eafe8f2141a787a98
Activity 6_5_Histogram_Vizualization
This example visualizes the relationship between age and average body mass index (BMI) using a histogram. The d3.bin generator groups the data by age, and rectangles display the average BMI for each bin. The visualization uses d3.scaleLinear for both axes, with d3.axisBottom and d3.axisLeft for labeling. Data comes from a CSV file loaded via d3.csv, and the chart is rendered as SVG with custom styling for tick marks and rectangle fills.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.