Skip to main content
100%

Fork of Bar plot of Yelp data: top cities

✓ Published0🌍 Public
JJaswitha09
Last edited Nov 28, 2021
Created on Nov 28, 2021

This fork of a bar plot visualizes the top ten cities in Greater Boston with the highest number of Yelp restaurants rated four stars or above. Rendered as an SVG, the chart uses horizontal bars to compare city counts, with the x-axis showing the number of restaurants and the y-axis listing city names. The code leverages d3.scaleLinear and d3.scaleBand for axis scaling, and d3.axisLeft and d3.axisBottom to generate the axes. Data is loaded from a local CSV file, with the original source being the public Yelp dataset.

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