Assignment2_Q4
✓ Published0🌍 Public
This bubble chart visualizes cereal manufacturers’ products by plotting sodium levels on the x-axis against cereal ratings on the y-axis, with circle radius encoding calorie content and color distinguishing manufacturers (A, G, K, N, P, Q, R). The visualization uses D3 v7 with SVG rendering to create the scatterplot, axes, and legends. The code employs d3.scaleLinear for positioning and sizing, d3.scaleOrdinal with d3.schemeSet1 for categorical colors, and d3.axisBottom and d3.axisLeft for axes. Data comes from the included data.csv file, and both bubble size and color legends are rendered directly in the SVG.
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.
MIT Licensed