File size: 7,775 Bytes
4c26f07 6f00cd2 4c26f07 6f00cd2 e1b22e8 6f00cd2 e1b22e8 6f00cd2 43e7dcc 6f00cd2 e1b22e8 6f00cd2 e1b22e8 6f00cd2 e1b22e8 6f00cd2 e1b22e8 6f00cd2 e1b22e8 6f00cd2 e1b22e8 6f00cd2 861d8fd e1b22e8 861d8fd e1b22e8 97f6f76 e1b22e8 43e7dcc 97f6f76 e1b22e8 43e7dcc e1b22e8 6b92e4e e1b22e8 6b92e4e e1b22e8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | ---
license: cc-by-nc-4.0
language:
- en
task_categories:
- image-to-text
- visual-question-answering
pretty_name: ChartGalaxy++
size_categories:
- 100K<n<1M
tags:
- charts
- infographic
- scene-graph
---
<h1 align="center">ChartGalaxy++</h1>
<p align="center"><strong>A Richly Annotated Dataset for Chart Understanding and Generation</strong></p>
<p align="center"><a href="https://github.com/ChartGalaxyPP/ChartGalaxyPlusPlus">Project</a> · <a href="https://huggingface.co/ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph">Image2SceneGraph model</a> · <a href="https://github.com/ChartGalaxyPP/ChartGalaxyPlusPlus/releases/tag/v1.0">Application data</a> · <a href="https://huggingface.co/datasets/ChartGalaxyPP/ChartGalaxyPlusPlus/blob/main/USAGE.md">Loading guide</a></p>
**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](assets/gallery.png) · [Sample identities](assets/sources.json)*
## 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](assets/annotation.png)*
| 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](ANNOTATION_GUIDE.md), [JSON schema](scene_graph.schema.json), and [data format](DATA_FORMAT.md) 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:
```python
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](sample_index.jsonl.gz) and the [shard-loading example](USAGE.md). Bounding boxes in dataset annotations use **`[y0, x0, y1, x1]`, normalized to 0–1000**.
<details>
<summary>Download the complete dataset</summary>
```python
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](manifest.json). See [USAGE.md](USAGE.md) for extraction and integrity checks.
</details>
## 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](https://huggingface.co/ChartGalaxyPP/ChartGalaxyPlusPlus-Image2SceneGraph); [1,000-chart benchmark](https://github.com/ChartGalaxyPP/ChartGalaxyPlusPlus/tree/main/applications/image_to_scene_graph) |
| **Infographic question answering** | Associate text and marks through explicit groups and relationships | [1,266 questions, reference answers, and image URLs](https://github.com/ChartGalaxyPP/ChartGalaxyPlusPlus/tree/main/applications/qa) |
| **Scene graph preservation** | Evaluate structural fidelity in generated infographic charts | [11-model benchmark and generated outputs](https://github.com/ChartGalaxyPP/ChartGalaxyPlusPlus/tree/main/applications/scene_graph_preservation) |
See the [project page](https://github.com/ChartGalaxyPP/ChartGalaxyPlusPlus#three-applications) 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
<details>
<summary>Exact annotation counts and release notes</summary>
- **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_near` is 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_gold` is 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.
</details>
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](LICENSE) and [license and sources](LICENSE_AND_SOURCES.md).
|