ICE-5 The shapes of data
This example, "ICE-5 The shapes of data," visualizes a dataset of 50 U.S. tourist places through an interactive D3.js dashboard. It combines a sortable HTML table with a summary and analysis section, alongside a custom SVG beach scene that uses D3 v7 to draw geometric shapes—a blue water rectangle, a red sun, and stylized people—to evoke the dataset’s themes. The visualization transforms tabular CSV data into a playful, narrative-driven SVG illustration, demonstrating how D3 can extend beyond charts to create thematic, data-inspired graphics.
AI-generated descriptionTourist Places Website
This project creates a simple website displaying tourist places in the US. It includes a table of tourist places along with a summary and analysis of the CSV data. Additionally, it generates an SVG image representing a beach scene with people.
Features
- Displays a table of tourist places with their names, locations, and descriptions.
- Provides a summary and analysis of the CSV data.
- Generates an SVG image of a beach scene with buildings and people.
Prerequisites
To run this project, you need a web browser and an internet connection to fetch the CSV data.
Usage
- Clone this repository to your local machine.
- Open the
index.htmlfile in your web browser.
File Structure
index.html: HTML file containing the webpage structure.styles.css: CSS file containing styles for the webpage.script.js: JavaScript file containing logic for fetching data, generating tables, and creating SVG images.
Modification
You can modify the content and styles of the webpage by
editing the HTML, CSS, and JavaScript files. You can also
adjust the SVG generation logic in the script.js file to
customize the beach scene.
Credits
- CSV data: Tourist Places in US
- SVG image inspiration: CodePen - Animated Beach Scene