Dataset Viewer
Auto-converted to Parquet Duplicate
image
stringlengths
20
108
conversations
listlengths
2
2
images/example_8_aug_004.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_164_aug_027.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "radar" } ]
images/example_107_aug_044.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "scatter" } ]
images/example_209_aug_005.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_255_aug_024.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "graph" } ]
images/example_152_aug_048.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "candlestick" } ]
images/example_101_aug_005.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "pie" } ]
images/example_163_aug_026.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "radar" } ]
images/example_233_aug_020.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "gauge" } ]
images/example_73_aug_006.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "bar" } ]
images/example_252_aug_048.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "graph" } ]
images/example_280_aug_003.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "custom" } ]
images/example_293_aug_019.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "custom" } ]
images/example_77_aug_005.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "bar" } ]
images/example_252_aug_035.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "graph" } ]
images/example_100_aug_013.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "pie" } ]
images/example_15_aug_015.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_17_aug_040.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_230_aug_005.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "gauge" } ]
images/example_102_aug_008.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "pie" } ]
images/example_54_aug_049.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "bar" } ]
images/example_13_aug_009.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_29_aug_020.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_240_aug_041.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_125_aug_026.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_281_aug_009.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "custom" } ]
images/example_93_aug_006.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "pie" } ]
images/example_232_aug_008.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "gauge" } ]
images/example_72_aug_019.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "bar" } ]
images/example_35_aug_044.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_249_aug_015.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_246_aug_041.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "themeRiver" } ]
images/example_125_aug_010.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_173_aug_002.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "heatmap" } ]
images/example_42_aug_015.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "bar" } ]
images/example_227_aug_039.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "gauge" } ]
images/example_21_aug_037.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_17_aug_022.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_30_aug_015.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_121_aug_012.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "scatter" } ]
images/example_36_aug_003.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_98_aug_029.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "pie" } ]
images/example_38_aug_038.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_97_aug_033.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_293_aug_025.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "custom" } ]
images/example_59_aug_023.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "bar" } ]
images/example_15_aug_002.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_52_aug_017.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "bar" } ]
images/example_172_aug_031.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "heatmap" } ]
images/example_202_aug_035.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "treemap" } ]
images/example_76_aug_031.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "bar" } ]
images/example_17_aug_041.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_91_aug_030.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "pie" } ]
images/example_1_aug_037.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_248_aug_005.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_33_aug_035.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_8_aug_045.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_230_aug_039.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "gauge" } ]
images/example_51_aug_034.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "bar" } ]
images/example_67_aug_019.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_60_aug_030.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "bar" } ]
images/example_164_aug_009.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "radar" } ]
images/example_73_aug_033.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "bar" } ]
images/example_24.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_96_aug_005.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "pie" } ]
images/example_152_aug_006.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "candlestick" } ]
images/example_25_aug_016.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_283_aug_048.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "custom" } ]
images/example_51_aug_014.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "bar" } ]
images/example_253_aug_039.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "scatter" } ]
images/example_41_aug_039.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_222_aug_037.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "funnel" } ]
images/example_20_aug_002.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_99_aug_039.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "pie" } ]
images/example_120_aug_043.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_101_aug_002.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "pie" } ]
images/example_80_aug_049.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "bar" } ]
images/example_25_aug_024.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_67_aug_016.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_31_aug_029.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_24_aug_027.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_5_aug_029.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_76_aug_008.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "bar" } ]
images/example_164_aug_003.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "radar" } ]
images/example_11_aug_038.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_236_aug_034.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "gauge" } ]
images/example_88_aug_014.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "pie" } ]
images/example_238_aug_028.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_111_aug_048.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "effectScatter" } ]
images/example_96_aug_024.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "pie" } ]
images/example_242_aug_022.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "pictorialBar" } ]
images/example_155_aug_007.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "candlestick" } ]
images/example_55_aug_000.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_125_aug_000.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_242_aug_040.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "pictorialBar" } ]
images/example_97_aug_036.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
images/example_4_aug_009.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "line" } ]
images/example_59_aug_036.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "bar" } ]
images/example_175_aug_025.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "heatmap" } ]
images/example_41_aug_026.png
[ { "from": "human", "value": "What type of chart is this?" }, { "from": "gpt", "value": "unknown" } ]
End of preview. Expand in Data Studio

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

ECharts-SynChart: A Synthetic Dataset for Chart Classification

DOI

This repository contains the code and dataset for the paper "ECharts-SynChart: A Large-Scale Synthetic Dataset for Chart Type Classification".

Dataset

  • Size: 10,272 images, 24 chart types.
  • Source: Generated from ECharts official examples with data augmentation (numerical perturbation, color variation, label replacement).
  • Download: https://doi.org/10.5281/zenodo.19401089
    The dataset is accompanied by train/val/test CSV split files (included in this repository). The dataset is provided as a single compressed archive (echarts-synchart-images.tar.gz, ~486 MB). After downloading, extract the images; the archive contains an images/folder. Place this images/folder in the repository root (alongside README.md).

Code Structure

  • scripts/ – Python scripts for data augmentation, training, and evaluation.
    • train_classifier.py – Train ResNet50 baseline model.
    • plot_confusion_matrix.py – Generate confusion matrix on test set.
    • csv_to_jsonl.py – Convert CSV labels to JSONL format (for Qwen-VL).
    • unified_augment.py – Data augmentation for ECharts JS files.
    • generate_labels.py – Extract chart type labels from JS files.
    • merge_datasets.py – Merge multiple PNG directories into one dataset.
    • check_png.py – Detect and optionally delete blank images.
    • config.py & utils.py – Configuration and helper functions.
  • node_scripts/ – Node.js scripts for rendering ECharts JS to PNG.
    • render_echarts.js – Render a JS file to PNG using Puppeteer.
  • requirements.txt – Python dependencies.

Quick Start

  1. Clone this repository
git clone https://github.com/dfps-1234/echarts-synchart.git
cd echarts-synchart
  1. Install dependencies
pip install -r requirements.txt
  1. Download the dataset
    Download the archive from Zenodo and extract it:
    tar -xzf echarts-synchart-images.tar.gz      # 解压后得到 images/ 文件夹
    
    Place the images/folder in the root directory of this repository (alongside README.md). The default DATA_ROOT in train_classifier.py is set to'.', which expects the images/folder in the repository root. The CSV files (train.csv, val.csv, test.csv) are already included in the repository – you do not need to regenerate them.
  2. Train the baseline model
      # Ensure DATA_ROOT in train_classifier.py points to the directory containing images/ (e.g., DATA_ROOT = '.')
    python scripts/train_classifier.py --batch_size 64 --epochs 20
    
  3. Generate confusion matrix
      # The confusion matrix script uses the same DATA_ROOT setting as train_classifier.py.
    python scripts/plot_confusion_matrix.py
    

Requirements

Python 3.8 or higher is required. See requirements.txt for a full list. Main packages:

  • torch >= 2.0.0
  • torchvision >= 0.15.0
  • scikit-learn >= 1.2.0
  • matplotlib >= 3.5.0
  • pandas >= 1.5.0
  • tqdm >= 4.65.0
  • Pillow >= 9.0.0
  • numpy >= 1.23.0

Citation

If you use this code or dataset in your research, please cite:

@article{li2024echarts,
  title={ECharts-SynChart: A Large-Scale Synthetic Dataset for Chart Type Classification},
  author={Li, Yunzhe},
  journal={...},
  year={2024},
  doi={10.5281/zenodo.19401089}
}

License

This project is licensed under the MIT License – see the LICENSE file for details.

Downloads last month
20