chart-generator

Generates bar, line, pie, scatter, radar, and area charts from user data.

190|27|Updated Apr 22, 2026
One-click install
npx skills add https://github.com/linxuan-sys/opencode-skills-chinese --skill chart-generator-linxuan-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chart-generator
Source: https://github.com/linxuan-sys/opencode-skills-chinese/tree/main/chart-generator
Command: npx skills add https://github.com/linxuan-sys/opencode-skills-chinese --skill chart-generator-linxuan-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you turn raw data and visualization requirements into charts quickly, even when you need either fast antv rendering or strict matplotlib styling for PNG export.

Core Features & Use Cases

  • Two generation paths: uses antv MCP for fast chart generation or falls back to matplotlib to produce PNGs when you require precise styling.
  • Chart type coverage: supports common chart types such as bar, line, pie, scatter, radar, and area charts based on the user request.
  • Matplotlib compliance: enforces a non-GUI Agg backend, consistent CJK font settings, tight layout, and a fixed output path for exported images.

Quick Start

Ask: “Use your chart-generator to create a line chart for my provided x/y dataset with a title and axis labels, and export it as a PNG image.”

Frequently Asked Questions about chart-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a chart from data and export it as a PNG image?

To generate a chart and export a PNG, provide your dataset and chart specifications. The tool uses matplotlib with a non-GUI Agg backend, enforcing consistent CJK font settings and tight layout to produce a deterministic PNG file output.

What is the best way to create publication-ready charts with CJK fonts?

Creating publication-ready charts with CJK fonts requires strict style constraints. The tool enforces consistent CJK font configuration and tight layout in matplotlib, ensuring your rendered visualizations display international characters correctly without missing glyphs.

Does chart generation work with antv for fast rendering or is matplotlib required?

Chart generation supports two paths: antv MCP for rapid rendering and matplotlib for strict PNG export styling. It uses antv for fast chart generation and falls back to matplotlib when you require precise styling and downloadable PNG outputs.

Can I use this to create different types of data visualizations like radar or scatter plots?

Yes, you can create various data visualizations. It supports common chart types including bar, line, pie, scatter, radar, and area charts based on your user-defined parameters and provided datasets for analysis and presentation.

Why does matplotlib fail to export charts in a server environment without a display?

Matplotlib fails in headless server environments because it defaults to a GUI backend. This tool enforces a non-GUI Agg backend, bypassing display requirements to ensure deterministic file output and successful chart generation.

How do I turn raw data into visual charts for presentation using Python?

To turn raw data into visual charts, input your dataset and specify parameters like chart type, titles, and axis labels. The tool processes your specifications to render analysis-ready charts suitable for presentations.