Chart2NCode
收藏资源简介:
Chart2NCode是由新加坡管理大学构建的跨语言图表-代码对齐数据集,包含17.6万组图表图像与Python/R/LaTeX多语言脚本的四元组。该数据集通过自动化元数据提取和模板实例化流程构建,涵盖20种图表类型,平均token长度分别为Python(384.1)、R(591.8)和LaTeX(637.1),并经过渲染验证和人工质量检查。作为首个支持多语言图表代码生成研究的基准数据集,其通过视觉对齐的跨语言脚本监督,旨在提升科学图表的重现性、编辑性和多平台适用性。
Chart2NCode is a cross-lingual chart-code alignment dataset developed by Singapore Management University, comprising 176,000 quadruples of chart images and multilingual scripts in Python, R, and LaTeX. This dataset is constructed via automated metadata extraction and template instantiation workflows, covering 20 chart types, with average token lengths of 384.1 for Python, 591.8 for R, and 637.1 for LaTeX respectively, and it has undergone rendering validation and manual quality inspection. As the first benchmark dataset supporting research on multilingual chart code generation, it leverages visually aligned cross-lingual script supervision to improve the reproducibility, editability, and cross-platform applicability of scientific charts.
数据集概述
数据集名称
Chart2NCode
所属项目
CharLuMA(论文《Aligned Multi-View Scripts for Universal Chart-to-Code Generation》,已被 ACL 2026 主会接收)
数据集规模
- 包含 176K 张图表(charts)
- 每张图表与 Python、R、LaTeX 三种脚本对齐
数据集特点
- 图表与三种语言编写的脚本对齐,这些脚本渲染出的视觉输出效果等价
- 基于元数据到模板的流水线(metadata-to-template pipeline) 构建,并经过渲染验证
当前发布资源
- 自动标注流水线代码(存放于
dataset_construction/目录) - Chart2NCode 数据集的一个随机子集(存放于
dataset_construction/sample_Chart2NCode/目录) - 当前发布仅包含面积图(area)、条形图(bar)和箱线图(box)的模板及填充脚本
- 完整数据集因存储限制和评审期间禁止外部链接,未在此仓库中托管
相关模型
CharLuMA:一种基于 LLaVA 风格多模态大模型(MLLM)的参数高效适配模块。通过语言条件混合低秩子空间增强多模态投影器,使模型在共享图表理解能力的同时,通过轻量级路由实现特定语言的代码生成。

- 1Aligned Multi-View Scripts for Universal Chart-to-Code Generation新加坡管理大学·计算与信息系统学院 · 2026年



