Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Stacked Franchise Revenues by Revenue Category

Public visualization

Fork of Stacked Franchise Revenues by Revenue Category

1 star0🌍 Public
XXiaoyu Su
Last edited Feb 10, 2021
Created on Feb 10, 2021

This interactive stacked bar chart displays franchise revenues broken down by revenue category, using data from R for Data Science’s Tidy Tuesday. Built with D3.js, it includes an animated color legend that highlights specific layers on hover, while dimming others. A tooltip via d3-tip shows dollar amounts in billions. The chart uses d3.layout.stack, d3.svg.axis, and d3.legend.color, with SVG rendering and custom tick formatting for readability.

AI-generated description

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

This visualization serves as a companion chart to the previous scatter plot, contrasting its view with a stacked bar chart and a legend with interactive highlighting. The next goal is to combine the two visualizations, their styles, and their techniques into one cohesive view.

Comments

Sign in to join the discussion.

MIT Licensed