Skip to main content
100%

Brushable bar chart of number of top-rated restaurants in GB area

✓ Published1🌍 Public
MMing Liu
Last edited Oct 20, 2021
Created on Oct 20, 2021

This brushable bar chart displays the number of top-rated restaurants across Greater Boston cities, with Boston’s count of 1,012 dominating the view. Users brush across the mini bar chart on the right to filter which cities appear in the main chart on the left. The implementation uses D3 v3 with SVG rendering, employing `d3.scale.ordinal` for bar positioning and `d3.svg.brush` to capture the brush extents. The y-axis zoom effect is achieved by mapping brush coordinates through `d3.scale.linear` to adjust the main chart’s domain. Data is loaded from a CSV containing city names and restaurant counts.

AI-generated description

Brushable bar chart of Yelp data: amount of restaurants in cities

This is a brushable bar chart presenting number of top-rated restaurants in Greater Boston cities.

Inspired by a great example of brushabe bar chart.

*This is a part of week 8 assignment: Make Something with Brushing

MIT Licensed

Similar vizzes