算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
skill-022【设计与创意】Create geographical map visualizations using D3.js (v6) to represent spatial data and geographical relationships.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
This skill enables the creation of geographical visualizations using D3.js. It focuses on rendering maps and spatial relationships to effectively display data that has a geographical context, such as demographics, weather patterns, or resource distribution.
Activate this skill when the user needs assistance with:
If the user requires non-geographical visualizations, don’t use this skill—opt for the D3.js Visualization Skill instead.
*.json, *.csv with geographical coordinates or region dataIf details are missing, make reasonable defaults and document them in comments near the top of the output file.
Prefer producing all of the following when feasible:
dist/map.html — standalone HTML that renders the map visualizationdist/map.svg — exported SVG representation of the mapdist/map.png — raster image output if specifiedAlways keep outputs in a predictable folder (default: dist/), unless the task specifies paths.
To create effective map visualizations:
<!DOCTYPE html>
<html>
<head>
<title>Map Visualization</title>
<script src="https://d3js.org/d3.v6.min.js"></script>
<script src="dist/map.js"></script>
</head>
<body>
<h1>Geospatial Data Visualization</h1>
<div id="map"></div>
</body>
</html>
This example sets up an HTML page to render a map visualization using D3.js. The associated map.js file would contain logic for rendering the geographical data.