Fork of Bar Chart - ICE 6
✓ Published0🌍 Public
This example shows a horizontal bar chart titled "MOVIES WITH THEIR BUDGET (IN MILLIONS)" for nine U.S. states, with each bar’s length encoding a numerical "Budget" value aligned to the state name along the y-axis. The visualization uses D3 v6’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to position bars and axes, while SVG linear gradients (`#gradient` and `#gradientForText`) color the rectangles and tick labels from green to orange and black, respectively. The data is loaded from a CSV file using `d3.csv` and rendered as SVG rects within a 900x700 viewport.
AI-generated descriptionMIT Licensed