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
markitdown
Python tool for converting files and office documents to Markdown.
OpenAI Whisper
OpenAI Whisper MCP Server - 基于本地 Whisper CLI 的离线语音识别与翻译,无需 API Key,支持...
oh-my-opencode
Background agents · Curated agents like oracle, librarians, frontend...
moor
Moor is a local MCP control plane for Mac. It gives every coding agent one...
skills-compat-manager
Cross-platform compatibility layer for AI agent skills — pre-flight...
LinkWork
Open-source enterprise AI workforce platform — containerized roles,...