🌍 Public
Viewing a saved revision (read-only)
fcaaada0468e45039935dd51c78962d5
Untitled
This example visualizes the price per head at Hyderabad restaurants using a bar chart, with an animated entrance and interactive highlighting on mouseover. Built with D3 v4 and SVG, bars transition in sequentially, while hovering enlarges a bar and displays its price in rupees. The code uses `d3.scaleBand`, `d3.scaleLinear`, and `transition` for animation, with event handlers `onMouseOver` and `onMouseOut` to toggle highlighting and show tooltip-like text.
AI-generated descriptionA demonstration of how to start using D3 version 6.