infographic
Overview
Use this skill to generate AntV Infographic DSL from user content and write a complete HTML file that renders the infographic and supports SVG export.
Workflow
- •Parse the user’s intent and content. If essential details are missing, ask 1–3 concise questions.
- •Select the most suitable template based on the information structure.
- •Produce valid AntV Infographic DSL.
- •Generate a full HTML file that renders the infographic and includes an SVG export button.
- •Write the HTML file to the workspace using
write_file. - •Reply in plain text with the file path, the DSL, and two short lines of guidance (no Markdown, no JSON, no code fences).
DSL rules
- •First line must be:
infographic <template-name>. - •Use
dataandthemeblocks; indent inner lines by two spaces. - •Use
key valuepairs; lists use-prefixes. - •The
datablock must includetitle(anddescif helpful). - •Use exactly one main data field for the chosen template:
- •
list-*->lists - •
sequence-*->sequences(optionalorder asc|desc) - •
compare-*->compares - •
compare-binary-*-> two root nodes with children under each - •
compare-hierarchy-left-right-*-> two root nodes with children under each - •
hierarchy-structure->items - •
hierarchy-*-> singlerootwithchildren - •
relation-*->nodes+relations(or relations only for simple graphs) - •
chart-*->values(optionalcategory)
- •
- •The DSL must not contain JSON, Markdown, or explanatory prose.
- •Match the user’s language for all text values.
Template list
- •chart-bar-plain-text
- •chart-column-simple
- •chart-line-plain-text
- •chart-pie-compact-card
- •chart-pie-donut-pill-badge
- •chart-pie-donut-plain-text
- •chart-pie-plain-text
- •chart-wordcloud
- •compare-binary-horizontal-badge-card-arrow
- •compare-binary-horizontal-simple-fold
- •compare-binary-horizontal-underline-text-vs
- •compare-hierarchy-left-right-circle-node-pill-badge
- •compare-quadrant-quarter-circular
- •compare-quadrant-quarter-simple-card
- •compare-swot
- •hierarchy-mindmap-branch-gradient-capsule-item
- •hierarchy-mindmap-level-gradient-compact-card
- •hierarchy-structure
- •hierarchy-tree-curved-line-rounded-rect-node
- •hierarchy-tree-tech-style-badge-card
- •hierarchy-tree-tech-style-capsule-item
- •list-column-done-list
- •list-column-simple-vertical-arrow
- •list-column-vertical-icon-arrow
- •list-grid-badge-card
- •list-grid-candy-card-lite
- •list-grid-ribbon-card
- •list-row-horizontal-icon-arrow
- •list-sector-plain-text
- •list-zigzag-down-compact-card
- •list-zigzag-down-simple
- •list-zigzag-up-compact-card
- •list-zigzag-up-simple
- •relation-dagre-flow-tb-animated-badge-card
- •relation-dagre-flow-tb-animated-simple-circle-node
- •relation-dagre-flow-tb-badge-card
- •relation-dagre-flow-tb-simple-circle-node
- •sequence-ascending-stairs-3d-underline-text
- •sequence-ascending-steps
- •sequence-circular-simple
- •sequence-color-snake-steps-horizontal-icon-line
- •sequence-cylinders-3d-simple
- •sequence-filter-mesh-simple
- •sequence-funnel-simple
- •sequence-horizontal-zigzag-underline-text
- •sequence-mountain-underline-text
- •sequence-pyramid-simple
- •sequence-roadmap-vertical-plain-text
- •sequence-roadmap-vertical-simple
- •sequence-snake-steps-compact-card
- •sequence-snake-steps-simple
- •sequence-snake-steps-underline-text
- •sequence-stairs-front-compact-card
- •sequence-stairs-front-pill-badge
- •sequence-timeline-rounded-rect-node
- •sequence-timeline-simple
- •sequence-zigzag-pucks-3d-simple
- •sequence-zigzag-steps-underline-text
Template selection guidance
- •Strict order / process ->
sequence-* - •Timeline ->
sequence-timeline-* - •Steps ->
sequence-ascending-*orsequence-stairs-* - •Roadmap ->
sequence-roadmap-vertical-* - •List of points ->
list-row-*orlist-column-* - •Grid of items ->
list-grid-*