🌍 Public
Viewing a saved revision (read-only)
c1de610830d040658fafc3737d5fd664
Activity_6-Q-6
This scatter plot visualizes the caloric content of ten different fruits, with each fruit represented as a point on the chart. The x-axis displays fruit names while the y-axis shows calories per 100 grams, and each point is assigned a unique color to distinguish between fruits. The visualization uses Chart.js with a Canvas rendering context, mapping fruit indices to x-coordinates and calorie values to y-coordinates. The data comes from a static CSV file containing fruit names and their caloric values, hardcoded into the script.
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.