Viewing a saved revision (read-only)
a1a7c4e0f18c44b4a98b768c16afb53c
Shopping Habits
This example displays the first row of a shopping habits dataset as a formatted JSON object in a container. It prints the data as a `<pre>` element with a font size of 20 pixels using template literals and `innerHTML`. The dataset, imported from `data.csv` and listed with its full header row, includes columns like age, gender, item purchased, category, location, and review rating. The code first converts several quantitative attributes, such as `Customer_ID`, `Age`, and `Purchase_Amount_USD`, to numbers using the unary plus operator before rendering the sample.
AI-generated descriptionThe Penguins Dataset, loaded and parsed as CSV.
Fork and modify this template to import your data to VizHub and export it for use in other vizzes! To do that:
- Fork this viz
- Clear out the README
- Update the README with details about your dataset (including original source)
- Replace
data.csvwith your own data - Replace the parsing logic in
index.jswith your own - Set the custom URL so you can import from it easily
Challenge
- Find 3 datasets on a topic you are interested in
- For each of those, fork this viz and replace the data
- Parse the quantitative attributes into numbers
- Update
README.mdto indicate the original data source