A professional-grade toolkit for generating accurate, high-performance data visualizations using the AntV G2 v5 library and Spec Mode syntax.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install g2-chart
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install g2-chart using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The AntV G2 v5 Chart Generator is a specialized skill designed to streamline the creation of modern web visualizations. It focuses strictly on the G2 v5 Spec Mode, moving away from legacy chained APIs to a declarative, serializable configuration style. This ensures that developers can produce maintainable, high-fidelity charts ranging from simple bar plots to complex hierarchical treemaps and financial K-line charts.
By leveraging this skill within Openclaw Skills, users benefit from deep technical constraints that prevent common pitfalls like duplicate chart rendering or illegal color palettes. It acts as an expert advocate for the AntV ecosystem, ensuring that generated code follows performance best practices and the latest visual encoding standards.
chart.options() block using the declarative V5 Spec Mode, incorporating necessary data transforms (like fold) and mark transforms (like stackY).chart.render() command is appended to finalize the visual output.To start using this skill in your frontend project, ensure you have the G2 library installed:
npm install @antv/g2
Basic initialization in your JavaScript/TypeScript file:
import { Chart } from '@antv/g2';
const chart = new Chart({
container: 'your-container-id',
autoFit: true,
height: 500,
});
The skill organizes visualization logic into a structured taxonomy. Data is primarily handled via the data and transform properties:
| Property | Description | Format |
|---|---|---|
type |
Defines the primary mark (interval, line, point, etc.) | String |
data |
The source data, often including inline values and transforms | Object |
encode |
Mapping of data fields to visual channels (x, y, color) | Object |
transform |
Mark-level operations like stacking or dodging | Array |
coordinate |
The coordinate system (theta for pies, polar for radar) | Object |
type: 'view' and children to layer different marks (e.g., line + point) in a single coordinate system.spaceLayer or spaceFlex for independent views like population pyramids or dashboard grids.fold (wide-to-long table conversion) and kde (kernel density estimation) within the data pipeline.groupX, binX, and stackY transforms for on-the-fly data computation without external libraries.Loading
A collaborative music management skill that allows group chat members to contribute to a Mopidy queue without disrupting playback.

A professional tool for retrieving technical patent specifications and detailed technical descriptions directly from the Zhihuiya database.

A professional tool for fetching and translating full patent specifications into Chinese, English, or Japanese using Zhihuiya data.

A dynamic research skill providing historical context, real-time news, and statistical data for the Chicago Bulls NBA franchise.

DeepRead Medical Records enables automated extraction of structured data from clinical documents while ensuring HIPAA-compliant PII redaction.

A specialized AI skill for retrieving real-time product data, financial reports, and official corporate news for Changan Automobile.








































