Skip to main content
100%

Untitled

✓ Published0🌍 Public
SSaahithi49
Last edited Jul 6, 2022
Created on Jul 6, 2022
Forked from Hello VizHub

A bar chart displays the price per head of restaurants in Hyderabad, using data loaded via `d3.csv` from a GitHub gist. The chart uses `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, with SVG rendering and animated transitions via `transition.attr`. Hovering over a bar triggers a mouseover handler that enlarges the bar, changes its class from `bar` to `highlight`, and appends a dynamic price label, while mouseout restores the original state and removes the label.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes