Skip to main content
100%

Making a Bar Chart

✓ Published2🌍 Public
Vvasukipriyam
Last edited Apr 24, 2019
Created on Apr 24, 2019
Forked from Making a Bar Chart

This horizontal bar chart compares movie budgets against titles, with a color gradient from IndianRed to red indicating budget magnitude. Hovering over a bar displays the movie title, budget, and IMDb score in a separate HTML div using mouseover events. The visualization animates bar widths when clicking a circular button, toggling between full and zero widths with d3 transitions. It uses d3.csv to load data, d3.scaleLinear for both x-axis and color encoding, d3.scaleBand for categorical y-axis placement, and d3.axisLeft/axisBottom for axis rendering.

AI-generated description

This bar chart shows budget and the movietitle with the reference of imdbscore

I've used the data provided in the class

my coding is inspired by vizhub.com with github.

MIT Licensed

Similar vizzes