Brushable bar chart, try 3...
A brushable bar chart visualizes the number of top-rated restaurants (4+ stars) across Greater Boston cities, sorted from highest to lowest count. The main panel displays the full ranked list, while a small miniature overview enables brushing to zoom the y-axis domain, revealing detailed bars for a selected range of cities. Built with D3 v3 and SVG, the chart uses `d3.scale.ordinal` for city positioning and a linear zoom scale coordinated with a brush on the mini chart. Data comes from the public Yelp dataset, filtered to Greater Boston.
AI-generated descriptionBar chart of Yelp data: top cities
The original dataset is from public Yelp dataset.
The data used for this visualization is filtered on top-rated restaurants in Greater Boston (GB) area. Top-rated restaurants are defined as 4 stars or above.
This graph shows the top 10 cities with best restaurants in GB.
X axis is the number of best restaurants
Y axis is top 10 cities.
*This is a part of week 4 assignment: Create a Visualization that's Not a Scatter Plot