State Ratings
This visualization displays a map of average customer review ratings across U.S. states, using a dataset derived from shopping habits. The code loads a CSV file with `d3.csv` or a custom import, converts quantitative fields like `AvgRating` and `NumRatings` to numbers, and renders the first data record as raw JSON in a `<pre>` element. The example demonstrates basic data inspection, showing how to load and parse tabular data for subsequent geospatial or analytical use.
AI-generated descriptionThe description comes from the original dataset source:
The Shopping Habits Dataset provides insight into consumer preferences, tendencies, and patterns during their shopping experiences. The dataset includes a range of variables, including demographic information, purchase history, product preferences, shopping frequency, and online/offline shopping behavior. This data allows analysts and researchers to further understand consumer decision-making processes, helping businesses to craft targeted marketing strategies, optimizing product offerings, and enhancing overall customer satisfaction.
Five tasks to be completed on this dataset:
- I want to identify which states have the best review ratings.
- I want to visualize the distribution of items purchased by gender.
- I want to understand which items and categories are being purchased most in each season.
- I want to determine if there is a correlation between the purchase amount and presence of discounts or promo codes.
- I want to be able to see if certain colors of each item are being purchased most.