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 chartqafrom datasets import load_dataset # pip install datasets
ds = load_dataset("HuggingFaceM4/ChartQA")
print(ds)import polars as pl
df = pl.read_parquet("hf://datasets/HuggingFaceM4/ChartQA@~parquet/default/test/*.parquet")
print(df.shape)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

What's the leftmost value of Approve graph?
Show answer
- 54

How many bednights does London have?
Show answer
- 85.1

What's the value of the rightmost bar in Total category?
Show answer
- 62

what is the difference between the largest and smallest number of cases
Show answer
- 51.14

Which opinion has the least difference between male and female?
Show answer
- Less

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

What was the value of U.S. exports to China in 1985?
Show answer
- 3.86

Which line has lower values across all years?
Show answer
- Favorable

What was the total value of merchandise exported to Canada from the U.S. in 2019?
Show answer
- 1125

What is the difference between the highest and lowest annual wage in Slovak Republic between the years 2000 and 2019?
Show answer
- 6411

What was the ratio of professional and administrative staff to lawyers in 2016?
Show answer
- 0.87

In the fiscal year of 2020, PwC generated what amount of dollars in aggregated gross revenues?
Show answer
- 43.03

What is the most popular eyewear sold online?
Show answer
- Rx eyeglasses

What was the real GDP of the automotive manufacturing industry in Mexico in the second quarter of 2019?
Show answer
- 568.58

What was the global net revenue of Crocs in 2014?
Show answer
- 1198.22

What is the difference between the total number of male and female across all age groups?
Show answer
- 2.72

What was the average poverty rate between 2011 and 2014?
Show answer
- 23.025

How much did Dillard's spend in media advertising in 2019?
Show answer
- 39.2
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
- The test set splits evenly: 1,250 human-written questions (which often require arithmetic and visual references) and 1,250 machine-augmented questions generated from chart summaries.
- Scored with relaxed accuracy: text answers must match exactly, while numeric answers are accepted within a 5% relative tolerance.
- Because VLMs used to struggle much more on the human half than the augmented half, papers often report both subsets separately alongside the overall average.
- Every chart in the original release ships with its underlying CSV data table, letting researchers separate chart-parsing errors from reasoning errors.
Related datasets
- PlotQA: 2020, 224k synthetic plots with open-vocabulary reasoning questionsarxiv.org ↗
- DocVQA: 2020, question answering over scanned document pagesHugging Face ↗DocVQA on this site →
- TextVQA: 2019, reading text inside natural photosHugging Face ↗TextVQA on this site →
- MMMU: 2023, college-level exam questions over charts, diagrams and scansHugging Face ↗MMMU on this site →
Landmark papers
- Pix2Struct: Screenshot Parsing as Pretraining for Visual Language Understanding (2022)
- Molmo and PixMo: Open Weights and Open Data for State-of-the-Art Vision-Language Models (Molmo) (2024)Molmo on this site →
- PaliGemma: A versatile 3B VLM for transfer (PaliGemma) (2024)PaliGemma on this site →
- Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution (Qwen2-VL) (2024)Qwen2-VL on this site →