MCPcopy Index your code
hub / github.com/ChartGalaxy/ChartGalaxy

github.com/ChartGalaxy/ChartGalaxy @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
87 symbols 358 edges 15 files 20 documented · 23%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ChartGalaxy: A Dataset for Infographic Chart Understanding and Generation

ChartGalaxy data on Hugging Face

ChartGalaxy is a million-scale dataset of synthetic and real infographic charts with data tables, supporting applications in infographic chart understanding, code generation, and chart generation. The dataset addresses the challenge that existing datasets are mostly limited to plain charts, failing to capture the diverse range of design styles and layouts that are key characteristics of infographic charts.

Examples image

🔥 News

2026.02.05: 🎉🎉 A new batch of data has been added, comprising 108,208 infographic charts. This update features broader diversity in title designs and more polished layouts, improving overall readability.

2025.12.15: 🎉🎉 A new batch of data has been added on Hugging Face 🤗, comprising 19,458 infographic charts. This update includes more diverse title designs and fixes for layout issues that might cause ambiguity.

📦 Dataset

👉 Access the full ChartGalaxy dataset on Hugging Face 🤗! 👈

Due to storage limitations, we only include a collection of representative examples below (and more in examples).

Examples image

📊 Statistics

  • Size: 1,763,189 infographic charts (1,701,356 synthetic + 61,833 real)
  • Content: Each infographic chart is paired with the tabular data used to create it
  • Chart Types: 75 chart types with 440 chart variations
  • Layout Templates: 68 layout templates

🚀 Data Collection and Creation

ChartGalaxy was constructed through:

  1. Real Infographic Chart Collection: Charts were collected from 18 reputable chart-rich websites, such as Visual Capitalist and Statista.

  2. Synthetic Infographic Chart Creation: Following an inductive structuring process that:

  3. Identifies 75 chart types (e.g., bar charts) and 440 chart variations reflecting different visual element styles
  4. Extracts 68 layout templates defining spatial relationships among elements
  5. Programmatically generates synthetic charts based on these patterns

🎯 Applications

The utility of ChartGalaxy is demonstrated through three representative applications:

🧠 Infographic Chart Understanding

Fine-tuning on ChartGalaxy improves the performance of foundation models on infographic chart understanding.

We provide the code and data for the evaluation introduced in our paper (code, data).

💻 Infographic Chart Code Generation

A benchmark for assessing LVLMs' code generation for infographic charts. The benchmark evaluates the similarity between charts rendered by the generated D3.js code and ground-truth ones at two levels of granularity: high-level (overall visual similarity) and low-level (average similarity across fine-grained SVG elements).

We provide the code and data for the constructed benchmark introduced in our paper (benchmark).

🖼️ Example-based Infographic Chart Generation

An example-based method that transforms user-provided tabular data into an infographic chart, aligning with the layout and visual style of a given example chart. User studies show this method outperforms GPT-Image-1 on fidelity, aesthetics, and creativity.

We provide the code for the example-based infographic chart generation introduced in our paper (code).

🔧 Other Supported Tasks

ChartGalaxy can also support a broad range of related tasks, including: - infographic chart visual question answering - chart-to-table / data extraction - infographic chart generation - layout-aware generation and editing - retrieval-based infographic chart generation

📖 Citation

If you find ChartGalaxy useful in your research, please cite our paper:

@inproceedings{li2025chartgalaxy,
      title={ChartGalaxy: A Dataset for Infographic Chart Understanding and Generation}, 
      author={Zhen Li and Duan Li and Yukai Guo and Xinyuan Guo and Bowen Li and Lanxi Xiao and Shenyu Qiao and Jiashu Chen and Zijian Wu and Hui Zhang and Xinhuan Shu and Shixia Liu},
      year={2026},
      booktitle={The Fourteenth International Conference on Learning Representations},
      url={https://openreview.net/forum?id=P4lFbvZ4HH},
}

✨ Related Projects

  • InfoDet: A Dataset for Infographic Element Detection

Paper | Code | Dataset

  • InfoChartQA: A Benchmark for Multimodal Question Answering on Infographic Charts

Paper | Code | Dataset

⚖️ License

This project is released under the Apache 2.0 license.

🤝 Contact

  • chartgalaxy@163.com

Core symbols most depended-on inside this repo

load_json
called by 11
code_generation_benchmark/utils/utils_chat.py
safe_save_json
called by 10
code_generation_benchmark/utils/utils_chat.py
load_txt
called by 5
code_generation_benchmark/utils/utils_chat.py
extract_image_feature
called by 4
code_generation_benchmark/utils/utils_image_encoder.py
box_area
called by 4
code_generation_benchmark/utils/utils_eval.py
crop_icon
called by 4
code_generation_benchmark/utils/utils_screenshot.py
load_prompt_file
called by 3
example_based_generation/generate_infographic.py
get_logger
called by 3
code_generation_benchmark/utils/utils_chat.py

Shape

Function 75
Method 10
Class 2

Languages

Python100%

Modules by API surface

code_generation_benchmark/utils/utils_eval.py17 symbols
example_based_generation/generate_infographic.py10 symbols
code_generation_benchmark/utils/utils_chat.py10 symbols
code_understanding/scoring.py8 symbols
code_generation_benchmark/utils/utils_vis_bbox.py8 symbols
code_generation_benchmark/main.py8 symbols
code_generation_benchmark/utils/utils_scores.py6 symbols
code_generation_benchmark/utils/utils_parse.py5 symbols
code_generation_benchmark/utils/utils_image_encoder.py5 symbols
code_generation_benchmark/utils/utils_screenshot.py3 symbols
code_generation_benchmark/utils/utils_color.py3 symbols
code_generation_benchmark/configs/loader.py2 symbols

For agents

$ claude mcp add ChartGalaxy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact