1,981 Vega-Lite Specifications
收藏资源简介:
我们展示了一个新的包含1,981个Vega-Lite规范的集合,用于展示我们的自然语言生成框架的通用性和可行性。这是迄今为止从GitHub获取的最大的人工生成图表集合。它涵盖了从简单的无交互线图到具有四个图表的数据点通过选择交互链接的图表的不同复杂度级别。我们专注于收集复杂图表,其中超过86%属于复杂和超复杂级别。与基准相比,我们的数据集显示了规范之间最高的平均成对编辑距离,证明图表之间高度多样化。此外,它包含了最多的具有复合视图、交互(如工具提示、平移和缩放、链接)和多样图表类型(如地图、网格和矩阵、图表等)的图表。
We present a new collection of 1,981 Vega-Lite specifications to demonstrate the versatility and feasibility of our natural language generation framework. This is the largest collection of human-generated charts obtained from GitHub to date. It covers a range of complexity levels, from simple non-interactive line charts to charts with four data points linked through selection interactions. We focus on collecting complex charts, with over 86% falling into the complex and highly complex categories. Compared to benchmarks, our dataset exhibits the highest average pairwise edit distance among specifications, indicating a high degree of diversity among the charts. Additionally, it includes the most charts with composite views, interactions (such as tooltips, pan and zoom, linking), and diverse chart types (such as maps, grids and matrices, and charts).
数据集概述
数据集名称
- Chart Dataset: 1,981 Vega-Lite Specifications
数据集描述
- 该数据集包含1,981个Vega-Lite规格的图表,是目前从GitHub收集的最大的人工生成图表集合。
- 图表复杂度从简单的无交互线图到具有四个图层且数据点通过选择交互链接的极其复杂的图表不等。
- 超过86%的图表属于复杂和极其复杂级别。
- 数据集展示了最高的平均成对编辑距离,证明图表之间的高度多样性。
- 包含大量具有复合视图、交互(如工具提示、平移&缩放、链接)和多样图表类型(如地图、网格&矩阵、图表等)的图表。
数据集用途
- 用于展示NL生成框架的通用性和可行性。
数据集加载
-
可通过Huggingface加载,使用以下代码: python import json from datasets import load_dataset
dataset = load_dataset("hyungkwonko/chart-llm", data_files="data.txt") json_data = [json.loads(data) for data in dataset["train"]["text"]] print(f"len(json_data): {len(json_data)}")
数据集元数据
- 包含图表的元数据,包括每个图表的许可证,详细信息可在此处查看:Google Sheets链接。




