Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of barchart

Public visualization

Fork of barchart

0 stars0🌍 Public
Mmadipadiga.raviteja@gmail.com
Last edited Mar 21, 2024
Created on Mar 21, 2024

This example presents a horizontal bar chart comparing the production budgets of Indian movies. The visualization uses D3 v6 with SVG rendering, importing functions like `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` from the D3 module. Data is loaded from a CSV file, with budget values parsed as numbers and displayed using formatted tick labels (e.g., “55M”). The chart includes axis labels for “Movies” and “Production Budget,” plus a title, with bars filled by a linear gradient defined in the SVG.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed