Content
# Chart Generation Tool
This project is a chart generation tool based on `FastMCP`, supporting the generation of various types of charts from JSON data, including Line Charts, Bar Charts, Pie Charts, and Histograms. The generated charts can be saved as image files.
## Features
- **Supported Chart Types**:
- Line Chart
- Bar Chart
- Pie Chart
- Histogram
- **Support for Chinese Characters**: By setting the `SimHei` font, the charts can correctly display Chinese characters.
- **Automatic Directory Creation**: If the path for saving charts does not exist, the program will automatically create the directory.
- **Error Handling**: Detailed error messages will be returned if an error occurs during the chart generation process.
## File Structure
- `v1.py`: The main program file that contains the implementation of the chart generation tool.
- `README.md`: Project documentation file.
## Usage
1. **Install Dependencies**:
Ensure that the following Python libraries are installed:
- `matplotlib`
- `numpy`
- `FastMCP`
Use the following command to install the dependencies:
```bash
pip install matplotlib numpy fastmcp
```
Connection Info
You Might Also Like
OpenAI Whisper
OpenAI Whisper MCP Server - 基于本地 Whisper CLI 的离线语音识别与翻译,无需 API Key,支持...
markitdown
Python tool for converting files and office documents to Markdown.
oh-my-opencode
Background agents · Curated agents like oracle, librarians, frontend...
agent-bridge
A local bridge for bidirectional collaboration between Claude Code and Codex.
Awareness-Local
Local-first AI agent memory — one command, works offline, no account needed....
search-console-mcp
An MCP Server providing AI agents access to Google Search Console for site,...