Liguyanger commited on
Commit
575d8bf
·
verified ·
1 Parent(s): eea6428

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -25,6 +25,10 @@ configs:
25
  data_files:
26
  - split: train
27
  path: code_only/train-*
 
 
 
 
28
  - config_name: d3_code_only
29
  data_files:
30
  - split: train
@@ -84,6 +88,31 @@ dataset_info:
84
  splits:
85
  - name: train
86
  num_examples: 3600
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  - config_name: d3_code_only
88
  features:
89
  - name: id
@@ -155,19 +184,19 @@ dataset_info:
155
  <h3 align="center">The official dataset repository of ChartAnno</h3>
156
 
157
  <p align="center">
158
- <b>1,200</b> real-world charts &nbsp;·&nbsp; <b>3,600</b> instructions &nbsp;·&nbsp; <b>7,200</b> model input instances &nbsp;·&nbsp; <b>17</b> chart types
159
  </p>
160
 
161
  ## 1. Data Overview
162
 
163
  Chart annotation is a communicative task that requires inferring intended messages, interpreting chart semantics, and placing appropriate textual or graphical elements. **ChartAnno** is a benchmark for evaluating multimodal large language models (MLLMs) on **chart annotation generation**: given an existing chart (as executable code, optionally with the rendered image) and an annotation instruction, the model generates executable code that adds the requested annotations.
164
 
165
- ChartAnno includes **1,200 real-world charts**, each with a paired **annotated / unannotated ground-truth** (code + rendered image) pair. Every chart is paired with annotation instructions across three levels of specificity — **Intent**, **Operation**, and **Implementation** — yielding **3,600 instruction instances**, tested under **two input settings** (`Input: code` and `Input: code+Image`) for **7,200 model input instances** in total.
166
 
167
  <p align="center">
168
  <img src="assets/main-chart.png" width="95%" alt="ChartAnno task design">
169
  </p>
170
- <p align="center"><sub>Task design: two input settings (Code, Code + Image) × three instruction levels (Intent, Operation, Implementation).</sub></p>
171
 
172
  ## 2. Task Formats
173
 
@@ -192,6 +221,12 @@ The dataset is organized into **configs**, one per input setting:
192
  <td align="center">Instruction + unannotated chart code</td>
193
  <td align="center">Annotated code + annotated chart</td>
194
  </tr>
 
 
 
 
 
 
195
  <tr>
196
  <td align="center"><code>d3_code_only</code></td>
197
  <td align="center">Input: code (D3.js)</td>
@@ -229,11 +264,11 @@ An example pair from the `code_image` config (`Area_1`): the model receives the
229
 
230
  ### D3.js / SVG extension (code-only)
231
 
232
- Besides the main Matplotlib benchmark, the dataset ships a **D3.js and SVG extension**: **120 real-world charts** (14 chart types), each paired with instructions across the same three levels — **360 rows per backend** (`d3_code_only`, `svg_code_only`). Rows follow the same schema as `code_only`; ids carry a `_d3` / `_svg` suffix, and the code files (`.js` / `.svg`) plus full-resolution images are included in `chartanno_d3_svg.tar.gz`.
233
 
234
  ## 3. Data Statistics
235
 
236
- The statistics below are computed on the main Matplotlib (Python) benchmark; the D3/SVG extension follows the same construction.
237
 
238
  **Overall scale**
239
 
@@ -268,6 +303,16 @@ The statistics below are computed on the main Matplotlib (Python) benchmark; the
268
  | Unannotated | 1075.22 | 790.45 |
269
  | Increment | 460.46 | 385.17 |
270
 
 
 
 
 
 
 
 
 
 
 
271
  **Chart type distribution (17 types)**
272
 
273
  | Type | Multi | Line | Bar | Scatter | Errorpoint | Heatmap | Pie | Area | Histogram |
@@ -304,6 +349,7 @@ The file structure of the dataset is as follows:
304
  data/
305
  ├── input_code.jsonl # Input: code task, 3,600 rows
306
  ├── input_code_image.jsonl # Input: code+Image task, 3,600 rows
 
307
  ├── manifest.json # row-count summary and schema description
308
  ├── README.md
309
  └── images/
 
25
  data_files:
26
  - split: train
27
  path: code_only/train-*
28
+ - config_name: image_only
29
+ data_files:
30
+ - split: train
31
+ path: image_only/train-*
32
  - config_name: d3_code_only
33
  data_files:
34
  - split: train
 
88
  splits:
89
  - name: train
90
  num_examples: 3600
91
+ - config_name: image_only
92
+ features:
93
+ - name: id
94
+ dtype: string
95
+ - name: category
96
+ dtype: string
97
+ - name: sample_id
98
+ dtype: string
99
+ - name: level
100
+ dtype: string
101
+ - name: input_type
102
+ dtype: string
103
+ - name: instruction
104
+ dtype: string
105
+ - name: GT w/o anno code
106
+ dtype: string
107
+ - name: gt_wo_anno_chart
108
+ dtype: image
109
+ - name: GT code
110
+ dtype: string
111
+ - name: gt_chart
112
+ dtype: image
113
+ splits:
114
+ - name: train
115
+ num_examples: 3600
116
  - config_name: d3_code_only
117
  features:
118
  - name: id
 
184
  <h3 align="center">The official dataset repository of ChartAnno</h3>
185
 
186
  <p align="center">
187
+ <b>1,200</b> real-world charts &nbsp;·&nbsp; <b>3,600</b> instructions &nbsp;·&nbsp; <b>7,200</b> primary instances (+3,600 image-only · +720 D3/SVG) &nbsp;·&nbsp; <b>3</b> representations &nbsp;·&nbsp; <b>17</b> chart types
188
  </p>
189
 
190
  ## 1. Data Overview
191
 
192
  Chart annotation is a communicative task that requires inferring intended messages, interpreting chart semantics, and placing appropriate textual or graphical elements. **ChartAnno** is a benchmark for evaluating multimodal large language models (MLLMs) on **chart annotation generation**: given an existing chart (as executable code, optionally with the rendered image) and an annotation instruction, the model generates executable code that adds the requested annotations.
193
 
194
+ ChartAnno includes **1,200 real-world charts**, each with a paired **annotated / unannotated ground-truth** (code + rendered image) pair. Every chart is paired with annotation instructions across three levels of specificity — **Intent**, **Operation**, and **Implementation** — yielding **3,600 instruction instances**. The primary benchmark tests **two input settings** (`Input: code` and `Input: code+Image`) for **7,200 model input instances**; a supplementary `Input: Image` setting adds **3,600 image-only instances**, and a 120-chart **D3.js / SVG extension** adds **720** more. Across the benchmark the same task is instantiated in **three representations** — Python, D3.js, and SVG.
195
 
196
  <p align="center">
197
  <img src="assets/main-chart.png" width="95%" alt="ChartAnno task design">
198
  </p>
199
+ <p align="center"><sub>Task design of ChartAnno. The benchmark considers two primary input settings, Code and Code + Image, and three instruction levels: Intent, Operation, and Implementation. The MLLM produces generated code, which is rendered into the generated chart.</sub></p>
200
 
201
  ## 2. Task Formats
202
 
 
221
  <td align="center">Instruction + unannotated chart code</td>
222
  <td align="center">Annotated code + annotated chart</td>
223
  </tr>
224
+ <tr>
225
+ <td align="center"><code>image_only</code></td>
226
+ <td align="center">Input: Image</td>
227
+ <td align="center">Instruction + unannotated chart image</td>
228
+ <td align="center">Annotated code + annotated chart</td>
229
+ </tr>
230
  <tr>
231
  <td align="center"><code>d3_code_only</code></td>
232
  <td align="center">Input: code (D3.js)</td>
 
264
 
265
  ### D3.js / SVG extension (code-only)
266
 
267
+ Besides the main Python benchmark, the dataset ships a **D3.js and SVG extension**: **120 real-world charts** (14 chart types), each paired with instructions across the same three levels — **360 rows per backend** (`d3_code_only`, `svg_code_only`). Rows follow the same schema as `code_only`; ids carry a `_d3` / `_svg` suffix, and the code files (`.js` / `.svg`) plus full-resolution images are included in `chartanno_d3_svg.tar.gz`.
268
 
269
  ## 3. Data Statistics
270
 
271
+ The statistics below are computed on the main Python benchmark; the D3/SVG extension follows the same construction.
272
 
273
  **Overall scale**
274
 
 
303
  | Unannotated | 1075.22 | 790.45 |
304
  | Increment | 460.46 | 385.17 |
305
 
306
+ **Code token increment across representations (120-chart extension)**
307
+
308
+ On the same 120 charts, the annotation increment differs substantially across representations:
309
+
310
+ | Representation | Avg. code token increment | Relative to Python |
311
+ | --- | --- | --- |
312
+ | Python | 395.0 | 1.00× |
313
+ | D3.js | 1374.2 | 3.48× |
314
+ | SVG | 2612.7 | 6.61× (1.90× D3) |
315
+
316
  **Chart type distribution (17 types)**
317
 
318
  | Type | Multi | Line | Bar | Scatter | Errorpoint | Heatmap | Pie | Area | Histogram |
 
349
  data/
350
  ├── input_code.jsonl # Input: code task, 3,600 rows
351
  ├── input_code_image.jsonl # Input: code+Image task, 3,600 rows
352
+ ├── input_image_only.jsonl # Input: Image task, 3,600 rows
353
  ├── manifest.json # row-count summary and schema description
354
  ├── README.md
355
  └── images/
chartanno.tar.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:13089f234709c58d1b91024d1126b4366fe960ead5c84a070cbfda79ade082f1
3
- size 151494493
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b44b8f790eab577e9fa05cee701a60326f90c3e2008fe88fa39e79235e7e1b4
3
+ size 153170810
image_only/train-00000-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:feb7ad23318a46c1e18da59f39267519d7d553a25f0ad4bbd2438eba923123ef
3
+ size 42092506
image_only/train-00001-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5bfe0e95e511820514a9358524f61a023daafb9c5f8d1b14461be6a1fb3a3013
3
+ size 39222945
image_only/train-00002-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8cd7b1e4a46b4600be85234a60a36dcb00f2e50c5bafa28038af8ab7cd6379f
3
+ size 41895576
image_only/train-00003-of-00004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:222ad0e671e64b4ed7803f7a4e0541cd7e50959f7ec89c1474efb32e39e77089
3
+ size 41059928