antvis/chart-visualization-skills1 file

Narrative Text Visualization

Generate structured narrative text visualizations from data using T8 Syntax. Use when users want to create data interpretation reports, summaries, or structured articles with semantic entity annotations. T8 is designed for unstructured data visualization where T stands for Text and 8 represents a byte of 8 bits, symbolizing deep insights beneath the text.

Specification
Skill ID
antvis/chart-visualization-skills/narrative-text-visualization
Publisher
antvis
Repository
chart-visualization-skills
Installs
0
Files
1
Synced
Oct 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

antvis/chart-visualization-skills/narrative-text-visualizationInstalls these files
  • SKILL.md

What this skill tells the agent

Narrative Text Visualization Skill

This skill provides a workflow for transforming data into structured narrative text visualizations using T8 Syntax - a declarative Markdown-like language for creating data narratives with semantic entity annotations.

What is T8

T8 is a text visualization solution under the AntV technology stack designed specifically for insight-based narrative text display. Instead of manually constructing DOM elements, you write simple, human-readable syntax that describes your data narrative.

Key Features:

  • LLM-Friendly: The syntax is intuitive and can be easily generated by AI models
  • Declarative & Readable: Write what you want, not how to build it
  • Framework Agnostic: Works with React, Vue, or vanilla JavaScript
  • Standardized Styling: Professional appearance by default
  • Built-in Data Visualizations: Mini charts (pie, line) are native to the syntax
  • Lightweight: Less than 20KB before gzip

Workflow

To generate narrative text visualizations, follow these steps:

1. Understand the Requirements

Analyze the user's request to determine:

  • The topic or data to be analyzed
  • The type of narrative needed (report, summary, article)
  • The key insights to highlight
  • Any specific data sources or metrics

2. Generate T8 Syntax Content

Create narrative text using T8 Syntax following the specification below. The content must include:

  • Proper document structure (headings, paragraphs, lists)
  • Entity annotations for all meaningful data points
  • Appropriate metadata for entities (origin, assessment, etc.)

3. Generate Frontend Code

Create HTML, React, or Vue code to render the T8 content based on user's preferred framework.

4. Validate Output

Ensure:

  • All data is from authentic sources
  • Minimum content length (800 words or equivalent)
  • Proper entity annotations throughout
  • Clear structure and logical flow

T8 Syntax Specification

T8 Syntax is a Markdown-like language for creating narrative text with semantic entity annotations. It makes data analysis reports more expressive and visually appealing.

Document Structure

Headings (6 levels)

Use standard Markdown heading syntax:

# Level 1 Heading (Main Title)
## Level 2 Heading (Section)
### Level 3 Heading (Subsection)
#### Level 4 Heading
##### Level 5 Heading
###### Level 6 Heading

Rules:

  • Each heading must be on its own line
  • Add one space after the # symbols
  • Headings create visual hierarchy in the rendered output
Paragraphs

Regular text paragraphs are separated by blank lines:

This is the first paragraph with some content.

This is the second paragraph, separated by a blank line.

Rules:

  • Paragraphs can span multiple lines
  • Use blank lines to separate distinct paragraphs
  • Text within a paragraph flows naturally
Lists

T8 Syntax supports both unordered and ordered lists.

Unordered Lists:

- First item
- Second item
- Third item

Ordered Lists:

1. First step
2. Second step
3. Third step

Rules:

  • Each list item must be on its own line
  • Add one space after the bullet marker (-, *) or number
  • Lists can contain entities and text formatting

Text Formatting

T8 Syntax supports inline text formatting using Markdown syntax:

Bold Text: This is **bold text** that stands out.

Italic Text: This is *italic text* for emphasis.

Underline Text: This is __underlined text__ for importance.

Links: Visit [our website](https://example.com) for more information.

Rules:

  • Formatting markers must be balanced (opening and closing)
  • Formatting can be combined with entities
  • Links use [text](URL) syntax where URL starts with http://, https://, or /

Entity Annotation Syntax

The core feature of T8 Syntax is entity annotation - marking specific data points with semantic meaning and metadata.

Basic Entity Syntax
[displayText](entityType)
  • displayText: The text shown to readers
  • entityType: The semantic type of this entity

Example:

The [sales revenue](metric_name) reached [¥1.5 million](metric_value) this quarter.
Entity with Metadata
[displayText](entityType, key1=value1, key2=value2, key3="string value")

Metadata Rules:

  • Separate multiple metadata fields with commas
  • Numbers and booleans: write directly (e.g., origin=1500000, active=true)
  • Strings: wrap in double quotes (e.g., unit="元", region="Asia")

Example:

Revenue grew by [15.3%](ratio_value, origin=0.153, assessment="positive") compared to last year.

Entity Types Reference

Use these entity types to annotate different kinds of data:

Entity TypeDescriptionWhen to UseExamples
metric_nameName of a metric or KPIWhen mentioning what you're measuring"revenue", "user count", "market share"
metric_valuePrimary metric valueThe main number/value being reported"¥1.5 million", "50,000 users", "250 units"
other_metric_valueSecondary or supporting metric valueAdditional metrics that provide context"average order value: $120"
delta_valueAbsolute change/differenceWhen showing numeric change between periods"+1,200 units", "-$50K", "increased by 500"
ratio_valuePercentage change/rateWhen showing percentage change"+15.3%", "-5.2%", "grew 23%"
contribute_ratioContribution percentageWhen showing what % something contributes"accounts for 45%", "represents 30% of total"
trend_descTrend descriptionDescribing direction/pattern of change"steadily rising", "declining trend", "stable"
dim_valueDimensional value/categoryGeographic, categorical, or segmentation data"North America", "Enterprise segment", "Q3"
time_descTime period or timestampWhen specifying when something occurred"Q3 2024", "January-March", "fiscal year 2023"
proportionProportion or ratioWhen expressing parts of a whole"3 out of 5", "60% of customers"
rankRanking or positionWhen indicating order or position in a list"ranked 1st", "top 3", "5th place"
differenceComparative differenceWhen highlighting difference between two items"difference of $50K", "gap of 200 units"
anomalyUnusual or unexpected valueWhen pointing out outliers or anomalies"unusual spike", "unexpected drop"
associationRelationship or correlationWhen describing connections between metrics"strongly correlated", "linked to", "related"
distributionData distribution patternWhen describing how data is spread"evenly distributed", "concentrated in", "spread across"
seasonalitySeasonal pattern or trendWhen describing recurring seasonal patterns"seasonal peak", "holiday period", "Q4 surge"

Common Metadata Fields

Add these optional fields to provide richer data context:

origin (number)

The raw numerical value behind the displayed text.

Examples:

More from antvis

Use this skill in a project

Open any RiverX project, search the Skills panel for antvis/chart-visualization-skills/narrative-text-visualization, and install it in one click.

Use this skill