AI Datasets
Esc

    ↑↓ move↵ open/ search from any page

    Catalog / Vision

    ChartQA (2022)

    32,700 questions over 20,882 real-world bar, line and pie charts requiring reading values and doing math.

    Why it matters

    Earlier chart datasets used synthetic matplotlib plots and template questions. ChartQA scraped real published charts from Statista, Pew Research, Our World in Data and the OECD, then asked questions that mix visual lookup ("the blue bar") with multi-step arithmetic (differences, averages, ratios). It quickly became a fixture in VLM scorecards—testing whether a model can read small axis labels, match colors to legends and calculate without hallucinating numbers.

    Get the data

    # pip install -U huggingface_hub
    hf download HuggingFaceM4/ChartQA --repo-type dataset \
      --local-dir chartqa

    Parquet copy of ChartQA (train, val and test) with chart images, queries, reference answers and human/machine tags.

    Year
    2022
    Creators
    Ahmed Masry, Do Xuan Long, Jia Qing Tan, Shafiq Joty, Enamul Hoque (York University, NTU Singapore)
    Task
    Visual and logical question answering over charts
    Size
    20,882 charts, 32,719 questions (9,608 human-written, 23,111 augmented)
    Splits
    train 28,299 · val 1,920 · test 2,500
    Input
    A real-world chart image and a question about its bars, lines, legends or numbers
    Labels
    A short numerical or text answer, tagged as human-written or machine-augmented
    License
    GPL-3.0 (code and annotations); charts sourced from Statista, Pew, OWID and OECD
    Paper
    ChartQA: A Benchmark for Question Answering about Charts with Visual and Logical Reasoning

    Samples

    Showing 6 of 18 sampled rows(from 2,500 in the test split)

    What's the leftmost value of Approve graph?

    human
    Show answer
    • 54

    How many bednights does London have?

    machine
    Show answer
    • 85.1

    What's the value of the rightmost bar in Total category?

    human
    Show answer
    • 62

    what is the difference between the largest and smallest number of cases

    human
    Show answer
    • 51.14

    Which opinion has the least difference between male and female?

    human
    Show answer
    • Less

    What's the ratio(A:B) of dark and light green bars for bottom category?

    human
    Show answer
    • 1
    What one record actually looks like (raw JSON, row 150)
    {
      "human_or_machine": 0,
      "image": {
        "height": 458,
        "src": "samples/chartqa/150-image.jpg",
        "width": 309
      },
      "label": [
        "54"
      ],
      "query": "What's the leftmost value of Approve graph?"
    }

    Media fields point at a local copy; on Hugging Face they are bytes in a Parquet file.

    Sampled 2026-11-22 from HuggingFaceM4/ChartQA at revision b605b6e

    Worth knowing

    Related datasets

    Landmark papers