Skip to main content
100%

Bar plot of Yelp data: top cities

✓ Published8🌍 Public
MMing Liu
Last edited Nov 10, 2021
Created on Sep 20, 2021
Forked from Yelp data map

This bar chart displays the top 10 cities in the Greater Boston area by number of Yelp-rated restaurants with four stars or higher, using a horizontal layout where the x-axis shows restaurant counts and the y-axis lists cities. The code loads a pre-filtered CSV dataset derived from the public Yelp dataset and uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render an SVG bar chart. Bars are colored purple, with a clear title and labeled axes, highlighting Boston’s dominance with over a thousand qualifying restaurants.

AI-generated description

Bar 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

MIT Licensed

Similar vizzes