Cost of Mobiles
✓ Published0🌍 Public
A horizontal bar chart displays the cost of various mobile phone models, ranging from budget Nokia to premium iPhone 14 Pro. Each bar’s length encodes the price from the `data.csv` file. The visualization uses D3 v7 with `scaleLinear` and `scaleBand` for positioning, `axisLeft` and `axisBottom` for axes, and includes interactive tooltips on hover. Data is loaded via `d3.csv`, and the SVG is rendered in an HTML page with a separate CSS file.
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