Processes, timelines, and cycles
Match sequential information to horizontal, chronological, and circular templates.
The infographic shortcode renders the AntV Infographic DSL with the versioned
runtime bundled by Oink. Use it for processes, timelines, cycles, funnels,
roadmaps, and compact visual summaries where a statistical chart would be too
literal.
The DSL is serialized as data, not inserted as arbitrary HTML or executable code. The browser runtime turns it into SVG and loads only on pages that use the shortcode.
{{< infographic >}}
infographic list-row-simple-horizontal-arrow
data
title Documentation workflow
items
- label Draft
desc Write the first version
- label Review
desc Check facts and language
- label Publish
desc Build and verify the site
{{< /infographic >}}The same three steps appear below. Drafting creates the first version, review checks facts and language, and publication builds and verifies the site.
An infographic normally contains:
infographic TEMPLATE, which selects a built-in AntV template;data block with an optional title and desc;items list with label, desc, optional value, and optional nested
children fields;theme block for a built-in theme or explicit colors.Indentation defines structure. Keep labels short, use descriptions for context, and choose a template whose visual relationship matches the prose. A decorative sequence is not a substitute for an actual hierarchy or comparison.
| Parameter | Default | Behavior |
|---|---|---|
height |
auto |
Accepts auto or a nonnegative number with px, rem, em, vh, vw, or % |
full |
false |
Set to true to remove Oink’s normal content-width clamp |
Invalid height values and an empty DSL body fail the Hugo build. DSL schema or template errors are reported by the browser runtime in the infographic container.
AntV themes belong to the DSL rather than the shortcode parameters. They do not automatically follow Oink’s site color mode, so verify foreground, background, and surrounding-page contrast in both modes.
The AntV package contains many templates. Start with the smallest visual form that clarifies the relationship, not the most decorative form available.
SVG improves visual fidelity, but it does not guarantee that every template exposes the same semantic structure as native headings, lists, and tables. Essential instructions must remain available in adjacent prose.
OINK documents its shortcode and delivery boundary. For the full DSL, template
gallery, and theme model, use the
AntV Infographic documentation,
gallery, and
source repository. The Oink theme’s
VENDOR.json records the exact bundled version, checksum, and MIT license file.
Match sequential information to horizontal, chronological, and circular templates.
Present grouped, narrowing, and stylized information without custom JavaScript.