es
A horizontal bar chart ranks the top 10 cities in Greater Boston by the number of Yelp restaurants rated four stars or above, with Boston leading at 1,011. The chart uses d3.csv to load city–count data, d3.scaleLinear and d3.scaleBand for axes, and d3.axisLeft and d3.axisBottom to render ticks. Bars are drawn as SVG rectangles with a purple fill, and the visualization includes a title and axis label. The underlying data is aggregated from the public Yelp dataset.
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