Most Popular Video Game Publisher
✓ Published0🌍 Public
This horizontal bar chart shows the top 10 video game publishers by total historical global sales in millions. The chart uses React to render SVG elements, with D3 v5’s `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Data is aggregated from the Video Game Sales CSV using `d3.nest` and `d3.sum` on the `Global_Sales` field, then sorted and sliced. Axes and rectangular marks are custom React components, with a tooltip provided by SVG `<title>` elements.
AI-generated descriptionA program that shows the top 10 game publisher which have the highest historical video game sales.
Data: Video Game Sales.
Question: What are the most popular historical game publisher?
Experience of answer:
- First, we need to accumulate the global sales of all the game publishers.
- To finish this, we group all the records by publisher as key. The value will be the sum of 'global_sales' of every year.
- Then we sort the records decreasingly, slice the record by 10 and present it to the bar chart.
MIT Licensed