Skip to main content
100%

Franchise Revenue Totals with Dropdown Menus and Color Legend

✓ Published1🌍 Public
Vvwm
Last edited Oct 17, 2019
Created on Oct 9, 2019

This interactive visualization displays franchise revenue data as a scatterplot, plotting total revenue against year created, with each point colored by original media type. Two dropdown menus let users switch the X and Y axes between total revenue and year created, while a color legend identifies the media categories. Built with React and D3 v5, the visualization uses d3.scaleLinear for axes, d3.scaleOrdinal for colors, and SVG circles for marks, with tooltips showing franchise names. Data comes from a CSV file loaded via d3.csv, sourced from R for Data Science's Tidy Tuesday event.

AI-generated description

This visualization was originally forked from one of Curran Kelleher's menu examples and modified to include Franchise Revenue data which originates from R for Data Science's Tidy Tuesday weekly event for July 2, 2019.

The goal was to recreate a visualization using React and D3 while incorporating dropdown menus and a color legend. Later iterations will add more values to the dropdowns, allow for simplification of original media, and enable dynamic selection of the color legend's category. Likewise, the legend's colors are not final; I'd like to consolidate these and apply a more friendly set of colors in the next version.

MIT Licensed

Similar vizzes