Untitled
✓ Published0🌍 Public
This example visualizes the average price per head at restaurants in Hyderabad, India, using a bar chart rendered as SVG with D3 v4. The chart displays restaurant names on the x-axis and prices on the y-axis, with bars animating into place. Hovering over a bar highlights it in orange and displays its price, using the `d3.select`, `d3.scaleBand`, and `d3.scaleLinear` APIs along with D3 transitions. The data is loaded from a remote CSV file, and the chart includes labeled axes and gridlines.
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