Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Job manager crashed while running this job (missing heartbeats).
Error code:   JobManagerCrashedError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

id
string
category
string
sample_id
string
level
string
input_type
string
instruction
string
GT w/o anno code
string
gt_wo_anno_chart
image
GT code
string
gt_chart
image
Area_1_intent_code_image
Area
Area_1
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] visitors = [12, 120, 229, 990, 4104, 3250, 5720, 43152, 41251, 50458, 45012, 62548] fig, ax = plt.subplots(figsize=(8, 6)) line, = ax.plot(months, visitors, marker='o', color=...
import matplotlib.pyplot as plt import numpy as np months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] visitors = [12, 120, 229, 990, 4104, 3250, 5720, 43152, 41251, 50458, 45012, 62548] fig, ax = plt.subplots(figsize=(8, 6)) line, = ax.plot(months, visitors, marker='o', color=...
Area_2_intent_code_image
Area
Area_2
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np weeks = ['Week 40', 'Week 41', 'Week 42', 'Week 43', 'Week 44'] total_message = [5488135, 7151894, 6027634, 5448832, 4236548] total_message_with_event = [645894, 437587, 891773, 963663, 383442] fig, ax = plt.subplots(figsize=(10, 6)) ax.set_facecolor('#f5f5f5') line1, ...
import matplotlib.pyplot as plt import numpy as np weeks = ['Week 40', 'Week 41', 'Week 42', 'Week 43', 'Week 44'] total_message = [5488135, 7151894, 6027634, 5448832, 4236548] total_message_with_event = [645894, 437587, 891773, 963663, 383442] fig, ax = plt.subplots(figsize=(10, 6)) ax.set_facecolor('#f5f5f5') line1, ...
Area_3_intent_code_image
Area
Area_3
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np quarters = ['', 'Quarter 1', 'Quarter 2', 'Quarter 3', 'Quarter 4'] region_a = [40, 50, 30, 43, 40] region_b = [20, 35, 40, 22, 20] fig, ax = plt.subplots(figsize=(10, 6)) ax.fill_between(quarters, region_a, color='#66C2A5', alpha=0.8, label='Region A') ax.fill_between...
import matplotlib.pyplot as plt import numpy as np quarters = ['','Quarter 1', 'Quarter 2', 'Quarter 3', 'Quarter 4'] region_a = [40, 50, 30, 43, 40] region_b = [20, 35, 40, 22, 20] fig, ax = plt.subplots(figsize=(10, 6)) ax.fill_between(quarters, region_a, color='#66C2A5', alpha=0.8, label='Region A') ax.fill_between(...
Area_4_intent_code_image
Area
Area_4
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np x_plot = [0, 1, 2, 3, 4, 5, 6, 7] y_plot = [0, 2, 4, 3, 6, 5, 2, 0] fig, ax = plt.subplots(figsize=(6, 6)) ax.set_xlim(0, 7) ax.set_ylim(0, 7) ax.set_xticks(np.arange(0, 7, 1)) ax.set_yticks(np.arange(0, 7, 1)) ax.plot([0, 7], [0, 0], color='black', linewidth=2) ax.plo...
import matplotlib.pyplot as plt import numpy as np x_plot =[0,1,2,3,4,5,6,7] y_plot =[0,2,4,3,6,5,2,0] x = x_plot[1:-1] y = y_plot[1:-1] fig, ax = plt.subplots(figsize=(6, 6)) ax.set_xlim(0, 7) ax.set_ylim(0, 7) ax.set_xticks(np.arange(0, 7, 1)) ax.set_yticks(np.arange(0, 7, 1)) ax.plot([0, 7], [0, 0], color='black', l...
Area_5_intent_code_image
Area
Area_5
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import pandas as pd import numpy as np from matplotlib.patches import Patch dates = pd.date_range(start='1996-07-01', end='1998-04-01', freq='MS') values = [ 28000, 25000, 26500, 37500, 46000, 46000, 61258.07, 38500, 38500, 52500, 53500, 36...
import matplotlib.pyplot as plt import pandas as pd import numpy as np from matplotlib.patches import Patch dates = pd.date_range(start='1996-07-01', end='1998-04-01', freq='MS') values = [ 28000, 25000, 26500, 37500, 46000, 46000, 61258.07, 38500, 38500, 52500, 53500, 36...
Area_6_intent_code_image
Area
Area_6
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np quarters = ['', 'Quarter 1', 'Quarter 2', 'Quarter 3', 'Quarter 4'] region_a = [60, 85, 70, 65, 62] region_b = [20, 35, 40, 22, 20] fig, ax = plt.subplots(figsize=(10, 6)) ax.fill_between(quarters, region_a, color='#66C2A5', alpha=0.8, label='Region A') ax.fill_between...
import matplotlib.pyplot as plt import numpy as np quarters = ['','Quarter 1', 'Quarter 2', 'Quarter 3', 'Quarter 4'] region_a = [60, 85, 70, 65, 62] region_b = [20, 35, 40, 22, 20] fig, ax = plt.subplots(figsize=(10, 6)) ax.fill_between(quarters, region_a, color='#66C2A5', alpha=0.8, label='Region A') ax.fill_between(...
Area_7_intent_code_image
Area
Area_7
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np from scipy.interpolate import interp1d anchors_x = np.array([ 0.00, 0.10, 0.20, 0.30, 0.40, 0.55, 0.70, 0.85, 0.95, 1.05, 1.15, 1.30, 1.45, 1.60, 1.75, 1.80, 1.90, 2.00, 2.10, 2.20, 2.35, 2.50, 2.65, 2.80, 2.95, 3.10, 3.25, 3.40, 3.55, 3.70, 3.85, 4.00,...
import matplotlib.pyplot as plt import numpy as np from scipy.interpolate import interp1d anchors_x = np.array([ 0.00, 0.10, 0.20, 0.30, 0.40, 0.55, 0.70, 0.85, 0.95, 1.05, 1.15, 1.30, 1.45, 1.60, 1.75, 1.80, 1.90, 2.00, 2.10, 2.20, 2.35, 2.50, 2.65, 2.80, 2.95, 3.10, 3.25, 3.40, 3.55, 3.70, 3.85, 4.00,...
Area_8_intent_code_image
Area
Area_8
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np from matplotlib.lines import Line2D np.random.seed(42) components_ordered = [ ('t17b17l0r0', 'red', 9.421, 0.048, 600), ('t22b21l1r1', 'orange', 11.538, 0.064, 600), ('t17b17l1r0', 'magenta', 9.890, 0.054, 550), ('t21b21l1r1', 'yellow', 11.567, 0.056, 6...
import matplotlib.pyplot as plt import numpy as np from matplotlib.lines import Line2D np.random.seed(42) components_ordered = [ ('t17b17l0r0', 'red', 9.421, 0.048, 600), ('t22b21l1r1', 'orange', 11.538, 0.064, 600), ('t17b17l1r0', 'magenta', 9.890, 0.054, 550), ('t21b21l1r1', 'yellow', 11.567, 0.056, 6...
Area_9_intent_code_image
Area
Area_9
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np countries = ['Canada', 'China', 'Russia', 'Australia', 'United States', 'France'] coal = [400, 800, 500, 400, 750, 350] hydro = [350, 600, 400, 450, 700, 300] nuclear = [200, 400, 300, 200, 500, 250] gas = [150, 300, 250, 150, 400, 200] oil = [100, 250, 200, 100, 300, ...
import matplotlib.pyplot as plt import numpy as np countries = ['Canada', 'China', 'Russia', 'Australia', 'United States', 'France'] coal = [400, 800, 500, 400, 750, 350] hydro = [350, 600, 400, 450, 700, 300] nuclear = [200, 400, 300, 200, 500, 250] gas = [150, 300, 250, 150, 400, 200] oil = [100, 250, 200, 100, 300, ...
Area_10_intent_code_image
Area
Area_10
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import matplotlib.dates as mdates from datetime import datetime import pandas as pd import platform data = { 'Date': [ datetime(2012, 3, 20), datetime(2012, 3, 22), datetime(2012, 3, 23), datetime(2012, 3, 24), datetime(2012, 3, 25), da...
import matplotlib.pyplot as plt import matplotlib.dates as mdates from datetime import datetime import pandas as pd data = { 'Date': [ datetime(2012, 3, 20), datetime(2012, 3, 22), datetime(2012, 3, 23), datetime(2012, 3, 24), datetime(2012, 3, 25), datetime(2012, 3, ...
Area_11_intent_code_image
Area
Area_11
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np import matplotlib.ticker as ticker years = np.array([1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013]) y_upper = np.array([ 2360, 2390, 2450, 2400, 2470, 2520, 2540, 2080, 2040, 1990, ...
import matplotlib.pyplot as plt import numpy as np import matplotlib.ticker as ticker years = np.array([1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013]) y_upper = np.array([ 2360, 2390, 2450, 2400, 2470, 2520, 2540, 2080, 2040, 1990, ...
Area_12_intent_code_image
Area
Area_12
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import pandas as pd import numpy as np import matplotlib.dates as mdates from scipy.interpolate import interp1d plt.rcParams['font.family'] = 'sans-serif' plt.rcParams['font.sans-serif'] = ['Arial', 'DejaVu Sans'] key_points = [ ('1999-01-01', 200), ('2000-03-01', 480), ('200...
import matplotlib.pyplot as plt import pandas as pd import numpy as np import matplotlib.dates as mdates from scipy.interpolate import interp1d plt.rcParams['font.family'] = 'sans-serif' plt.rcParams['font.sans-serif'] = ['Arial', 'DejaVu Sans'] key_points = [ ('1999-01-01', 200), ('2000-03-01', 480), ('200...
Area_13_intent_code_image
Area
Area_13
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np import matplotlib.transforms as transforms np.random.seed(42) def generate_segment_data_from_keyframes(start_yr, end_yr, keyframes, num_points): x = np.linspace(start_yr, end_yr, num_points) kf_x = [kf[0] for kf in keyframes] kf_y = [np.log10(kf[1]) for kf ...
import matplotlib.pyplot as plt import numpy as np import matplotlib.transforms as transforms np.random.seed(42) def generate_segment_data_from_keyframes(start_yr, end_yr, keyframes, num_points): x = np.linspace(start_yr, end_yr, num_points) kf_x = [kf[0] for kf in keyframes] kf_y = [np.log10(kf[1]) for kf ...
Area_14_intent_code_image
Area
Area_14
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots(figsize=(10, 6)) years = np.array([2014, 2015, 2016, 2017, 2018]) subsidized_data = np.array([4.5, 7.5, 8.2, 8.0, 8.3]) unsubsidized_data = np.array([3.7, 6.1, 6.3, 5.0, 3.8]) y_mid = np.array([ 2235, 2250, 2310, 2270, 2360, 2410, 2435, 1975,...
import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots(figsize=(10, 6)) years = np.array([2014, 2015, 2016, 2017, 2018]) subsidized_data = np.array([4.5, 7.5, 8.2, 8.0, 8.3]) unsubsidized_data = np.array([3.7, 6.1, 6.3, 5.0, 3.8]) ax.plot(years, subsidized_data, color='blue', marker='o', linewidth=2,...
Area_15_intent_code_image
Area
Area_15
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np plt.rcParams['font.family'] = 'sans-serif' plt.rcParams['font.sans-serif'] = ['Arial', 'DejaVu Sans'] fig, ax = plt.subplots(figsize=(8, 6)) x_shift = 0.15 x_base = [ 2007.00, 2007.25, 2007.50, 2007.75, 2008.00, 2008.25, 2008.35, 2008.50, 2008.75, 2009.00, ...
import matplotlib.pyplot as plt import numpy as np from matplotlib.ticker import MultipleLocator plt.rcParams['font.family'] = 'sans-serif' plt.rcParams['font.sans-serif'] = ['Arial', 'DejaVu Sans'] fig, ax = plt.subplots(figsize=(8, 6)) x_shift = 0.15 x_base = [ 2007.00, 2007.25, 2007.50, 2007.75, 2008.00, 200...
Area_16_intent_code_image
Area
Area_16
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np years = np.array([2009, 2010, 2011, 2012, 2013, 2014, 2015]) seizures_kg = np.array([512, 1453, 1138, 513, 375, 128, 357]) fig, ax = plt.subplots(figsize=(10, 6)) ax.plot(years, seizures_kg, color='red', linewidth=5, marker='o', markersize=8, markerfacecolor='w...
import matplotlib.pyplot as plt import numpy as np years = np.array([2009, 2010, 2011, 2012, 2013, 2014, 2015]) seizures_kg = np.array([512, 1453, 1138, 513, 375, 128, 357]) fig, ax = plt.subplots(figsize=(10, 6)) ax.plot(years, seizures_kg, color='red', linewidth=5, marker='o', markersize=8, markerfacecolor='white', m...
Area_17_intent_code_image
Area
Area_17
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np years = np.array([1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014]) values = np.array([35, 58, 58, 30, -5, -50, -58, -62, -64, -65, -85, -125, -155, -185, -210, -241]) fig, ax = plt.sub...
import matplotlib.pyplot as plt import numpy as np years = np.array([1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014]) values = np.array([35, 58, 58, 30, -5, -50, -58, -62, -64, -65, -85, -125, -155, -185, -210, -241]) fig, ax = plt.sub...
Area_18_intent_code_image
Area
Area_18
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np years = np.arange(1980, 2022) n_years = len(years) cpi_values = np.linspace(0, 236, n_years) tuition_values = (np.linspace(0, 1, n_years)**1.3) * 1200 tuition_values[0] = 0 fig, ax = plt.subplots(figsize=(10, 10)) bg_color = '#E6E3DD' fig.patch.set_facecolor(bg_color) ...
import matplotlib.pyplot as plt import numpy as np import matplotlib.patches as patches years = np.arange(1980, 2022) n_years = len(years) cpi_values = np.linspace(0, 236, n_years) tuition_values = (np.linspace(0, 1, n_years)**1.3) * 1200 tuition_values[0] = 0 fig, ax = plt.subplots(figsize=(10, 10)) bg_color = '#E6E3D...
Area_19_intent_code_image
Area
Area_19
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np import matplotlib.dates as mdates from datetime import datetime dates_str = [ '2014-01-01', '2014-06-01', '2014-11-01', '2015-01-01', '2015-06-01', '2015-12-01', '2016-01-01', '2016-06-01', '2016-12-01', '2017-01-01', '2017-06-01', '2017-07-01', '2017-12-01...
import matplotlib.pyplot as plt import numpy as np import matplotlib.dates as mdates from datetime import datetime dates_str = [ '2014-01-01', '2014-06-01', '2014-11-01', '2015-01-01', '2015-06-01', '2015-12-01', '2016-01-01', '2016-06-01', '2016-12-01', '2017-01-01', '2017-06-01', '2017-07-01',...
Area_20_intent_code_image
Area
Area_20
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import matplotlib.dates as mdates from datetime import datetime import numpy as np fig, ax = plt.subplots(figsize=(10, 6)) plt.title('Global coronavirus cases still rising fast', fontsize=20, fontweight='bold', pad=20) dates = [ datetime(2019, 12, 31), datetime(2020, 2, 1), datetime(...
import matplotlib.pyplot as plt import matplotlib.dates as mdates from datetime import datetime import numpy as np fig, ax = plt.subplots(figsize=(10, 6)) plt.title('Global coronavirus cases still rising fast', fontsize=20, fontweight='bold', pad=20) dates = [ datetime(2019, 12, 31), datetime(2020, 2, 1), datetime(...
Area_21_intent_code_image
Area
Area_21
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import matplotlib.dates as mdates import matplotlib.ticker as mticker from matplotlib.offsetbox import TextArea, HPacker, AnnotationBbox import pandas as pd import numpy as np from datetime import datetime start_date = datetime(2020, 1, 1) end_date = datetime(2020, 6, 15) dates = pd.date...
import matplotlib.pyplot as plt import matplotlib.dates as mdates from matplotlib.offsetbox import TextArea, HPacker, VPacker, AnnotationBbox import pandas as pd import numpy as np from datetime import datetime start_date = datetime(2020, 1, 1) end_date = datetime(2020, 6, 15) dates = pd.date_range(start=start_date, en...
Area_22_intent_code_image
Area
Area_22
intent
Input: code+Image
You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. I will provide you with the chart code without annotations, along with its corresponding reference image and annotation instructions. The image is generated by the code and is provided to help...
import matplotlib.pyplot as plt import numpy as np from scipy.interpolate import make_interp_spline from matplotlib.patches import Patch from matplotlib.lines import Line2D days = np.linspace(0, 365, 365) months = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334] month_labels = ['1-Jan', '1-Feb', '1-Mar', '1-Apr'...
import matplotlib.pyplot as plt import numpy as np from matplotlib.patches import Rectangle from scipy.interpolate import make_interp_spline days = np.linspace(0, 365, 365) months = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334] month_labels = ['1-Jan', '1-Feb', '1-Mar', '1-Apr', '1-May', '1-Jun', ...
End of preview.

ChartAnno logo

ChartAnno: Benchmarking Multimodal Large Language Models for Chart Annotation Generation

Homepage   arXiv   GitHub   HuggingFace Dataset   License

The official dataset repository of ChartAnno

1,200 real-world charts  ·  3,600 instructions  ·  10,800 instances (+720 D3/SVG)  ·  3 representations  ·  17 chart types

1. Data Overview

Annotations are essential to communicative visualization, helping explain data, emphasize key findings, and guide attention. 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.

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.

ChartAnno task design

Task design of ChartAnno. Primary chart inputs are Code or Code + Chart Image, with annotation instructions ranging from abstract Intent through Operation to concrete Implementation. For each chart input–instruction combination, the MLLM generates annotated code and its rendered chart, evaluated with reference to the unannotated code, instruction, and annotated ground truth.

2. Task Formats

The dataset is organized into configs, one per input setting:

Config Input setting Model input Ground truth
1_python_code_image Input: code+Image Instruction + unannotated chart code + chart image Annotated code + annotated chart
2_python_code_only Input: code Instruction + unannotated chart code Annotated code + annotated chart
3_python_image_only Input: Image Instruction + unannotated chart image Annotated code + annotated chart
4_d3_code_only Input: code (D3.js) Instruction + unannotated D3.js code Annotated D3.js code + annotated chart
5_svg_code_only Input: code (SVG) Instruction + unannotated SVG document Annotated SVG document + annotated chart

Each instance carries one of three instruction levels:

Level Description
intent Abstract communicative goal, e.g. "emphasize the strongest market". The model must infer what to annotate.
operation Concrete annotation operations, e.g. "add an arrow pointing to the peak and a text label with its value".
implementation Fully specified implementation details, e.g. exact label text, colors, and positions.

An example pair from the 1_python_code_image config (Area_33): the model receives the unannotated chart on the left (with its code) and produces the annotated version on the right.

Input: GT w/o anno chart Expected output: GT chart
Unannotated input chart Annotated ground-truth chart

D3.js / SVG extension (code-only)

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 (4_d3_code_only, 5_svg_code_only). Rows follow the same schema as 2_python_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.

3. Data Statistics

The statistics below are computed on the main Python benchmark; the D3/SVG extension follows the same construction.

Overall scale

Statistic Value
GT pair and GT w/o anno pair 1,200
Instruction instances 3,600
Annotation elements 25,772

Annotation complexity

Statistic Value
Avg. elements per chart 21.48
Std. elements per chart 35.32
Avg. annotation types per chart 2.17
Std. annotation types per chart 1.04

Instruction length (words)

Level Avg. Std.
Intent 66.39 52.97
Operation 95.06 63.57
Implementation 108.74 79.78

Code length (tokens)

Code Avg. Std.
Annotated 1535.68 972.38
Unannotated 1075.22 790.45
Increment 460.46 385.17

Code token increment across representations (120-chart extension)

On the same 120 charts, the annotation increment differs substantially across representations:

Representation Avg. code token increment Relative to Python
Python 395.0 1.00×
D3.js 1374.2 3.48×
SVG 2612.7 6.61× (1.90× D3)

Chart type distribution (17 types)

Type Multi Line Bar Scatter Errorpoint Heatmap Pie Area Histogram
Count 303 247 213 94 47 44 44 33 32
Type Combination Violin Radar Density Treemap Box Contour Dot Total
Count 31 20 19 19 17 16 15 6 1,200

4. Download Link

This dataset is gated: click Request access on the repo page first. Once granted, you can download the whole dataset with a read token (settings/tokens):

pip install -U huggingface_hub
hf login --token $HF_TOKEN        # or: hf auth login

mkdir ChartAnno && cd ChartAnno   # cd to the target directory
hf download chartanno/ChartAnno chartanno.tar.gz --repo-type dataset --local-dir .
tar -xzvf chartanno.tar.gz

The optional D3/SVG extension ships as a separate archive:

hf download chartanno/ChartAnno chartanno_d3_svg.tar.gz --repo-type dataset --local-dir .
tar -xzvf chartanno_d3_svg.tar.gz   # extracts to ./d3_svg_data

The file structure of the dataset is as follows:

data/
├── input_code.jsonl              # Input: code task, 3,600 rows
├── input_code_image.jsonl        # Input: code+Image task, 3,600 rows
├── input_image_only.jsonl        # Input: Image task, 3,600 rows
├── manifest.json                 # row-count summary and schema description
├── README.md
└── images/
    ├── GT_chart/                 # 1,200 annotated ground-truth charts (jpg)
    │   ├── Area/  Bar/  ...      # one subdirectory per chart type (17 types)
    └── GT_w_o_anno_chart/        # 1,200 unannotated charts, same layout

The Dataset Viewer above serves the full dataset: all 3,600 rows per config are loadable via load_dataset("chartanno/ChartAnno", "<config>") (configs 1_python_code_image, 2_python_code_only, 3_python_image_only are the main benchmark; 4_d3_code_only / 5_svg_code_only are the extension). Chart images in the viewer parquet are embedded as compressed JPEG thumbnails for fast previewing; the full-resolution images are included in chartanno.tar.gz.

5. Data Fields

We take an instance from the 1_python_code_image config as an example (Area_1_intent_code_image, long values truncated):

{
  "id": "Area_1_intent_code_image",
  "category": "Area",
  "sample_id": "Area_1",
  "level": "intent",
  "input_type": "Input: code+Image",
  "instruction": "You are an expert in chart annotation and Python visualization. I have created a figure but have not added any annotations yet. ...",
  "GT w/o anno code": "import matplotlib.pyplot as plt\nimport numpy as np\nmonths = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']\nvisitors = [12, 120, 229, 990, 4104, 3250, 5720, 43152, ...",
  "GT w/o anno chart": "data/images/GT_w_o_anno_chart/Area/Area_1.jpg",
  "GT code": "import matplotlib.pyplot as plt\nimport numpy as np\nmonths = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']\nvisitors = [12, 120, 229, 990, 4104, 3250, 5720, 43152, ...",
  "GT chart": "data/images/GT_chart/Area/Area_1.jpg"
}

Details of the data fields are as follows:

Field Description
id Stable row id: <sample_id>_<level>_code or <sample_id>_<level>_code_image.
category Chart type, one of 17 types (e.g. Area, Bar, Line).
sample_id Source chart id, <Category>_<n> (e.g. Area_1).
level Instruction level: intent, operation, or implementation.
input_type Input: code or Input: code+Image.
instruction The full model input prompt: task instruction with the unannotated code embedded.
GT w/o anno code Ground-truth chart code before annotation.
GT w/o anno chart Path to the unannotated chart image; always null in the 2_python_code_only config.
GT code Ground-truth annotated chart code.
GT chart Path to the annotated ground-truth chart image.

Image paths are relative to the repository root of the extracted data/ folder. In the viewer parquet the two image fields are named gt_chart / gt_wo_anno_chart (space-free, for Dataset Viewer compatibility) and are embedded as compressed thumbnails of these files.

6. Evaluation

ChartAnno comes with a self-contained evaluation pipeline (see the GitHub repository): it renders the generated code into charts and scores them with rule-based metrics (execution success, chart fidelity, annotation matching, color matching) and LLM-judged metrics (semantic faithfulness, semantic clarity, visual clarity, annotation organization quality, attention guidance). The final aggregate scores are:

Aggregate Inputs
Structural compliance chart fidelity (+ annotation & color matching for operation/implementation levels)
Semantic consistency semantic faithfulness, semantic clarity
Design effectiveness visual clarity, annotation organization quality, attention guidance

7. Citation

If you find ChartAnno useful, please consider citing our paper:

@article{chen2026chartanno,
      title={ChartAnno: Benchmarking Multimodal Large Language Models for Chart Annotation Generation},
      author={Zhenghan Chen and Zekai Shao and Lidan Tan and Xin Lin and Xingchen Zeng and Yi Shan and Ziyue Lin and Xiaoliang Fu and Xinyuan Liu and Yuetong Guo and Fen Wang and Bongshin Lee and Siming Chen},
      year={2026},
      journal={arXiv preprint arXiv:2608.03464},
}
Downloads last month
496

Paper for chartanno/ChartAnno