Skip to main content
100%

MarvelVsDC Bar Chart

✓ Published0🌍 Public
Hhappymail6
Last edited Jun 24, 2022
Created on Jun 24, 2022
Forked from Hello VizHub

This bar chart compares Marvel and DC movies by their IMDB ratings, displaying each film title along the vertical axis and its rating as a horizontal bar. The visualization uses D3 v5 within a React framework, employing `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis. Axes are generated with `axisLeft` and `axisBottom`, while the chart is rendered as SVG elements. The data is loaded from a CSV file via `d3.csv`, with rating values parsed to numbers before rendering.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes