算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
skill-136【设计与创意】Create animated visualizations using D3.js (v6) to bring data stories to life with motion and transitions.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
This skill allows you to create dynamic and animated visualizations using D3.js. The aim is to enhance the storytelling aspect of data by integrating animations and transitions that engage viewers and illustrate changes over time.
Activate this skill when the user asks for any of the following:
If the user requires static visualizations or offline outputs, don’t proceed with this skill—opt for the D3.js Visualization Skill instead.
*.csv, *.json, or *.tsvIf 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/animated-visualization.html — standalone HTML that renders the animated visualizationdist/animated-visualization.js — JavaScript file containing the animation logicdist/animated-visualization.gif — if the task specifies a GIF output of the animationAlways keep outputs in a predictable folder (default: dist/), unless the task specifies paths.
To create effective animated visualizations:
<!DOCTYPE html>
<html>
<head>
<title>Animated Visualization</title>
<script src="https://d3js.org/d3.v6.min.js"></script>
<script src="dist/animated-visualization.js"></script>
</head>
<body>
<h1>Animated Data Visualization</h1>
<div id="animated-vis"></div>
</body>
</html>
This example shows how to set up an HTML file for displaying animated visualizations. The accompanying JavaScript file would contain the logic for managing animations based on the data provided.