Skip to main content
100%

Bar plot of Yelp data: review counts vs. stars

✓ Published1🌍 Public
MMing Liu
Last edited Oct 1, 2021
Created on Sep 27, 2021

This bar chart displays the total number of Yelp reviews for top-rated restaurants (4 stars and above) in Greater Boston, grouped by star rating categories. The plot reveals that restaurants with 4 stars accumulate substantially more reviews than those with 4.5 or 5 stars. Built with D3 v5, the visualization uses `scaleBand` for the categorical x-axis, `scaleLinear` for the y-axis, and SVG rectangles to encode the data. The chart includes axis labels and a title, with data sourced from the public Yelp dataset.

AI-generated description

Bar plot of Yelp data: review counts vs. stars.

The original dataset is from public Yelp dataset.

The data used for this visualization is filtering on top-rated restaurants in Greater Boston (GB) area. Top-rated restaurants are defined as 4 stars or above.

This bar chart shows total number of reviews versus ratings on Yelp among these top-rated restaurants in GB. We can tell that the more reviews a restaurant receives, the lower rate it will has.

This is the iterated work of a scatter plor of Yelp data. I changed how the data is visualized as I think a bar plot makes more sense if doing comparison of categories. Instead of plotting review count for each restaurant, I chose to visualize the total review counts for each categories and this would be more appropriate when comparing among categories. Besides, I also added labels for both axes, a title (from peer's feedback), as well as used a new font.

*This is a part of week 5 assignment: Iterate Your Work

MIT Licensed

Similar vizzes