The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: TypeError
Message: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1531, in _prepare_split_single
for key, record in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 127, in _generate_examples
for example_idx, example in enumerate(self._get_pipeline_from_tar(tar_path, tar_iterator)):
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 32, in _get_pipeline_from_tar
for filename, f in tar_iterator:
^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/utils/track.py", line 49, in __iter__
for x in self.generator(*self.args):
~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 1405, in _iter_from_urlpath
with xopen(urlpath, "rb", download_config=download_config, block_size=0) as f:
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 982, in xopen
file_obj = fs.open(paths[0], mode)
File "<string>", line 3, in open
File "/usr/local/lib/python3.14/unittest/mock.py", line 1176, in __call__
return self._mock_call(*args, **kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/unittest/mock.py", line 1180, in _mock_call
return self._execute_mock_call(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/unittest/mock.py", line 1247, in _execute_mock_call
result = effect(*args, **kwargs)
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 786, in wrapped
tracker.files[urlpath] = {"read": 0, "size": int(f.size)}
~~~^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1393, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1571, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
json dict | __key__ string | __url__ string |
|---|---|---|
{
"annotation_version": "training-0.6",
"benchmark_id": "",
"hash_serialization": "UTF-8 compact JSON with ensure_ascii=false and one trailing LF",
"height": 519,
"human_gold": false,
"image_archive_length": 49754,
"image_archive_member": "pinterest1/images/./chart_471048442276204462.png",
"image_archiv... | 6ec77101b87917e4708c231b8790f82c | hf://datasets/ChartGalaxyPP/ChartGalaxyPlusPlus@97f6f767dded4a5e9a216af54b82669468c1bb00/data/real/train/part-00116.tar.gz |
{
"annotation_version": "training-0.6",
"benchmark_id": "",
"hash_serialization": "UTF-8 compact JSON with ensure_ascii=false and one trailing LF",
"height": 322,
"human_gold": false,
"image_archive_length": 18894,
"image_archive_member": "pinterest1/images/./chart_241435229997302602.png",
"image_archiv... | 920dafeb27fcdbdfa566b5a875260150 | hf://datasets/ChartGalaxyPP/ChartGalaxyPlusPlus@97f6f767dded4a5e9a216af54b82669468c1bb00/data/real/train/part-00116.tar.gz |
{
"annotation_version": "training-0.6",
"benchmark_id": "",
"hash_serialization": "UTF-8 compact JSON with ensure_ascii=false and one trailing LF",
"height": 247,
"human_gold": false,
"image_archive_length": 5708,
"image_archive_member": "pinterest1/images/./chart_650348002430953068.png",
"image_archive... | 2bce271e82ba0c7b531ffc5d88dad6ee | hf://datasets/ChartGalaxyPP/ChartGalaxyPlusPlus@97f6f767dded4a5e9a216af54b82669468c1bb00/data/real/train/part-00116.tar.gz |
{
"annotation_version": "training-0.6",
"benchmark_id": "",
"hash_serialization": "UTF-8 compact JSON with ensure_ascii=false and one trailing LF",
"height": 463,
"human_gold": false,
"image_archive_length": 30996,
"image_archive_member": "pinterest1/images/./chart_808185095608361103.png",
"image_archiv... | a16f027a6c591c8edacff4c05c985f1b | hf://datasets/ChartGalaxyPP/ChartGalaxyPlusPlus@97f6f767dded4a5e9a216af54b82669468c1bb00/data/real/train/part-00116.tar.gz |
{
"annotation_version": "training-0.6",
"benchmark_id": "",
"hash_serialization": "UTF-8 compact JSON with ensure_ascii=false and one trailing LF",
"height": 380,
"human_gold": false,
"image_archive_length": 12716,
"image_archive_member": "pinterest1/images/./chart_104427285089736636.png",
"image_archiv... | 57ee74b7cafdd5313be71ef266bdde1c | hf://datasets/ChartGalaxyPP/ChartGalaxyPlusPlus@97f6f767dded4a5e9a216af54b82669468c1bb00/data/real/train/part-00116.tar.gz |
{
"annotation_version": "training-0.6",
"benchmark_id": "",
"hash_serialization": "UTF-8 compact JSON with ensure_ascii=false and one trailing LF",
"height": 500,
"human_gold": false,
"image_archive_length": 59739,
"image_archive_member": "pinterest0/images/./chart_111393790761738522.png",
"image_archiv... | 1b0d5bd8f9e1a43b84a0faf724db4d27 | hf://datasets/ChartGalaxyPP/ChartGalaxyPlusPlus@97f6f767dded4a5e9a216af54b82669468c1bb00/data/real/train/part-00116.tar.gz |
{
"annotation_version": "training-0.6",
"benchmark_id": "",
"hash_serialization": "UTF-8 compact JSON with ensure_ascii=false and one trailing LF",
"height": 244,
"human_gold": false,
"image_archive_length": 16700,
"image_archive_member": "pinterest1/images/./chart_648025833858341751.png",
"image_archiv... | 1641f1bae23ed798aebcfd2ac290c9a9 | hf://datasets/ChartGalaxyPP/ChartGalaxyPlusPlus@97f6f767dded4a5e9a216af54b82669468c1bb00/data/real/train/part-00116.tar.gz |
{"annotation_version":"training-0.6","benchmark_id":"","hash_serialization":"UTF-8 compact JSON with(...TRUNCATED) | f3c849287214f66ef9655e4a791d3659 | "hf://datasets/ChartGalaxyPP/ChartGalaxyPlusPlus@97f6f767dded4a5e9a216af54b82669468c1bb00/data/real/(...TRUNCATED) |
{"annotation_version":"training-0.6","benchmark_id":"","hash_serialization":"UTF-8 compact JSON with(...TRUNCATED) | edf1ba9d604fe4072e202871ce614b1f | "hf://datasets/ChartGalaxyPP/ChartGalaxyPlusPlus@97f6f767dded4a5e9a216af54b82669468c1bb00/data/real/(...TRUNCATED) |
{"annotation_version":"training-0.6","benchmark_id":"","hash_serialization":"UTF-8 compact JSON with(...TRUNCATED) | c6c095a38c55e0fb69bc4f42a2309cee | "hf://datasets/ChartGalaxyPP/ChartGalaxyPlusPlus@97f6f767dded4a5e9a216af54b82669468c1bb00/data/real/(...TRUNCATED) |
ChartGalaxy++
A Richly Annotated Dataset for Chart Understanding and Generation
Project · Image2SceneGraph model · Application data · Loading guide
ChartGalaxy++ connects what is in an infographic chart with how it is organized. Each chart is paired with a scene graph: visual elements and semantic groups form the nodes, while hierarchical and spatial relationships connect them. These annotations support chart structure prediction, visual question answering, and evaluation of image generation.
| Infographic charts | Annotated nodes | Relationships |
|---|---|---|
| 217,195 | 18.90 million | 39.99 million |
Explore the dataset
Selected synthetic examples from the released PNGs, shown in full. The gallery spans compact comparisons, layered circular charts, dense radial marks, and illustrated narratives. View at full resolution · Sample identities
What is annotated?
The pasta-production example from the paper: each country groups a value, a pasta image, a flag, and a country label. The scene graph records these groups, element attributes, and hierarchical and spatial relationships. Enlarge
| Layer | Annotation content |
|---|---|
| Visual elements | Text, images, and shapes with bounding boxes, semantic roles, text content, and appearance attributes |
| Semantic groups | Charts, axes, legends, legend items, data items, series, and panels |
| Hierarchy | Parent–child links connecting elements to groups and the chart composition |
| Spatial relationships | Relative position, alignment, overlap, and Boolean proximity (is_near) |
See the annotation guide, JSON schema, and data format for all fields and coordinate conventions.
Dataset at a glance
| Split | Real charts | Synthetic charts | Total |
|---|---|---|---|
| Train | 56,244 | 159,951 | 216,195 |
| Test | 500 | 500 | 1,000 |
| Total | 56,744 | 160,451 | 217,195 |
Real charts: URLs + annotation JSON. Synthetic charts: PNG + annotation JSON. The main dataset is distributed in 926 independently extractable tar.gz shards. sample_index.jsonl.gz maps each sample ID to its shard and member files. The separate QA package provides image URLs without image files; unavailable URLs are left empty.
Get started
Install the download client with pip install huggingface_hub. Start with one standalone example before downloading shards:
import json
from huggingface_hub import HfApi, hf_hub_download
repo = "ChartGalaxyPP/ChartGalaxyPlusPlus"
revision = HfApi().dataset_info(repo).sha
def download(name):
return hf_hub_download(repo, name, repo_type="dataset", revision=revision)
image_path = download("examples/01-layout/image.png")
graph_path = download("examples/01-layout/scene_graph.json")
spatial_path = download("examples/01-layout/spatial_relations.json")
with open(graph_path, encoding="utf-8") as f:
graph = json.load(f)
nodes = graph["compositional_deconstruction"]["nodes"]
print(f"{len(nodes)} explicit nodes", image_path)
The example is an existing training record, not an additional sample. To load any chart, use the sample index and the shard-loading example. Bounding boxes in dataset annotations use [y0, x0, y1, x1], normalized to 0–1000.
Download the complete dataset
from huggingface_hub import snapshot_download
snapshot_download(
repo_id=repo,
repo_type="dataset",
revision=revision,
local_dir="chartgalaxy-plus-plus",
)
The data shards total approximately 105 GB. The release includes shard hashes in manifest.json. See USAGE.md for extraction and integrity checks.
What can you do with it?
| Application | What the scene graph enables | Released resource |
|---|---|---|
| Image-to-scene-graph prediction | Recover elements, semantic groups, and chart hierarchy | Image2SceneGraph model; 1,000-chart benchmark |
| Infographic question answering | Associate text and marks through explicit groups and relationships | 1,266 questions, reference answers, and image URLs |
| Scene graph preservation | Evaluate structural fidelity in generated infographic charts | 11-model benchmark and generated outputs |
See the project page for qualitative results and links to all three application packages. Under the paper's evaluation protocol, the released Image2SceneGraph model achieves 89.4% node F1, 85.1% hierarchy F1, and 88.0% spatial F1.
Annotation and release notes
Exact annotation counts and release notes
- Nodes: 15,591,656 visual elements + 3,088,632 explicit groups + 217,195 implicit roots = 18,897,483.
- Relationships: 18,680,288 parent links + 21,308,862 stored spatial records = 39,989,150. Unrecorded pairs are not negative labels.
is_nearis Boolean. Positive-area overlaps and containment are excluded; both absolute and relative distance thresholds must hold. The format guide specifies the rule.- The 1,000-chart test set, comprising 500 real and 500 synthetic charts, has been manually verified.
human_goldis true for the test split and false for the training split. - Generated replacement illustrations and their affected annotations are included in the main dataset. Historical benchmark packages retain the identities of their evaluated inputs; use their supplied references when inspecting reported results.
- Real-image references are supplied without checking their current availability. Source pages, direct image URLs, and archive references are distinguished in the format guide.
This release contains images or image references, scene graph annotations, and spatial records. Underlying data-table files and annotation/training/evaluation pipeline code are not included. The gallery is a curated visual preview, not a random sample or annotation-quality evaluation.
License
Contributed annotations are licensed under CC BY-NC 4.0. Third-party chart content and required upstream attributions retain their respective rights; see LICENSE and license and sources.
- Downloads last month
- 269

