Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
22
26
chart_spec
stringlengths
174
3.42k
svg_code
stringlengths
306
50k
source
stringclasses
534 values
metadata
stringlengths
62
69
svgen-6be4199080efb9cf
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Squares Four Duotone", "x_label": null, "y_label": null, "_freeform_description": "Icon of Squares Four Duotone"}
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg fill="#000000" width="800px" height="800px" viewBox="0 0 256 256" id="Flat" xmlns="http://www.w3.org/2000/svg"> <g opacity="0.2"> <rect x="48" y="48" width="64" height="64"/> </g> <g opa...
svgen500k-Phosphor_Duotone_Icons_Collect
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 1215}
svgen-624d1bef26c25805
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Car Crash", "x_label": null, "y_label": null, "_freeform_description": "Icon of Car Crash"}
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg width="800px" height="800px" viewBox="0 -18.5 64 64" xmlns="http://www.w3.org/2000/svg"> <g id="Group_202" data-name="Group 202" transform="translate(-388 -821.409)"> <g id="Group_195" dat...
svgen500k-Traffic_And_Transportation_Duo
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 3067}
svgen-ff09901d24c0e46c
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Actions Search", "x_label": null, "y_label": null, "_freeform_description": "Icon of Actions Search"}
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg width="800px" height="800px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <defs> <style>.cls-1{fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:bevel;stroke-width:1.5px;}...
svgen500k-Simple_UI_Line_Icons_Collectio
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 497}
synth-mpl-834d2535422b3469
{"chart_type": "bar", "data": [{"x": "F", "y": 7}, {"x": "M", "y": 51}], "encoding": {"x": "Sex", "y": "count(*)", "color": null}, "title": null, "x_label": "Sex", "y_label": "count(*)"}
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="424.522812pt" height="281.080398pt" viewBox="0 0 424.522812 281.080398" xmlns="http://www.w3.org/2000/svg" version="1.1"> <metadata> <rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/...
synth-matplotlib
{"chart_type": "bar", "num_points": 2, "svg_size_bytes": 8860}
svgen-d534ff8ce7e2fef5
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Bulb Education Idea", "x_label": null, "y_label": null, "_freeform_description": "Icon of Bulb Education Idea"}
<?xml version="1.0" ?> <!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'> <!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg width="800px" height="800px" viewBox="0 0 512 512" version="1.1" xml:space="preserve" xmlns="http://www.w3.o...
svgen500k-Modern_Education_Flat_Vectors_
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 7252}
svgen-3e5b4d1e8f06dcdb
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Number 2 Circle", "x_label": null, "y_label": null, "_freeform_description": "Icon of Number 2 Circle"}
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_429_10992)"> <circle cx="12" cy="12" r="9" stroke="#292929" stroke-widt...
svgen500k-Icona_Moon_Bold_UI_Icons_Colle
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 808}
svgen-6b24b9c76e004b77
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "man running", "x_label": null, "y_label": null, "_freeform_description": "The image depicts a cartoon man running on a black background. He is wearing a green t-shirt and gray pants, and appears to be in the middle of a j...
<svg width="128" height="128" style="enable-background:new 0 0 128 128;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <path id="head_2_" d="M67.4,36.19c0,0,1.12,4.32-3.68,5.44c-4.2,0.99-5.08-3.25-5.08-3.25 s-0.93-4.28-2.85-4.7c-0.73-0.16-0.89,0.02-2.98-0.29c-3.57-0.54-4.51-2.27-4.81-...
svgen500k-noto-emoji
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 11613}
synth-mpl-2db392de998a2ead
{"chart_type": "bar", "data": [{"x": "The Case: Off the Record", "y": 8.99}, {"x": "The Case of the Bermuda Triangle", "y": 9.99}, {"x": "The Case of the Piggy Banker", "y": 12.99}, {"x": "The Case of the Smart Dummy", "y": 12.99}, {"x": "The Case of the Mystery Weekend", "y": 15.99}], "encoding": {"x": "Title", "y": "...
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="424.501837pt" height="280.745242pt" viewBox="0 0 424.501837 280.745242" xmlns="http://www.w3.org/2000/svg" version="1.1"> <metadata> <rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/...
synth-matplotlib
{"chart_type": "bar", "num_points": 5, "svg_size_bytes": 11923}
svgen-ba98667520959525
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Data Storage Check Solid", "x_label": null, "y_label": null, "_freeform_description": "Icon of Data Storage Check Solid"}
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg width="800px" height="800px" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <title>data-storage-check-solid</title> <g id="Layer_2" data-name="Layer 2"> <g id="invisible_box" d...
svgen500k-Denali_Solid_Interface_Icons_C
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 975}
synth-mpl-7c84f631f9309a55
{"chart_type": "line", "data": [{"x": "1789~1809", "y": 20}, {"x": "1810~1830", "y": 0}, {"x": "1831~1851", "y": 10}, {"x": "1852~1872", "y": 23}, {"x": "1873~1893", "y": 77}, {"x": "1894~1914", "y": 65}, {"x": "1915~1935", "y": 0}, {"x": "1936~1956", "y": 982}, {"x": "1957~1977", "y": 125}, {"x": "1978~1998", "y": 135...
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="423.502057pt" height="281.188438pt" viewBox="0 0 423.502057 281.188438" xmlns="http://www.w3.org/2000/svg" version="1.1"> <metadata> <rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/...
synth-matplotlib
{"chart_type": "line", "num_points": 11, "svg_size_bytes": 15583}
svgen-40c2008e434cbde6
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Letter Envelope", "x_label": null, "y_label": null, "_freeform_description": "Icon of Letter Envelope"}
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg width="800px" height="800px" viewBox="0 0 24 24" id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <style>.cls-1{fill:none;}....
svgen500k-Office_Line_Icons_Collection_5
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 1238}
synth-mpl-1c56cdcdacd8e18f
{"chart_type": "bar", "data": [{"x": "Berneice", "y": 2}, {"x": "Bernice", "y": 2}, {"x": "Christophe", "y": 1}, {"x": "Cyrus", "y": 1}, {"x": "Edmond", "y": 3}, {"x": "Kadin", "y": 4}, {"x": "Oren", "y": 1}, {"x": "Rodger", "y": 1}], "encoding": {"x": "staff_name", "y": "COUNT(staff_name)", "color": null}, "title": "H...
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="577.991875pt" height="279.813992pt" viewBox="0 0 577.991875 279.813992" xmlns="http://www.w3.org/2000/svg" version="1.1"> <metadata> <rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/...
synth-matplotlib
{"chart_type": "bar", "num_points": 8, "svg_size_bytes": 16028}
svgen-99d180a6d065dcb7
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Lightbulb", "x_label": null, "y_label": null, "_freeform_description": "Icon of Lightbulb"}
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg width="800px" height="800px" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <title>lightbulb</title> <g id="Layer_2" data-name="Layer 2"> <g id="invisible_box" data-name="invis...
svgen500k-Denali_Line_Interface_Icons_Co
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 932}
svgen-3033d94f0800abbc
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "And Fork Kitchen", "x_label": null, "y_label": null, "_freeform_description": "Icon of And Fork Kitchen"}
<?xml version="1.0" ?> <!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg fill="#000000" width="800px" height="800px" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg"> <title/> <g id="Grid"> <path d="M98.61,64.84H76.36A6.39,6.39,0,0,1,70,58.46V26.51a6.43,6.43,0,0,1,.67-2.8...
svgen500k-Kitchen_Utencils_Line_Vectors_
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 1584}
svgen-105edafbff7c0907
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Folder File Document", "x_label": null, "y_label": null, "_freeform_description": "Icon of Folder File Document"}
<?xml version="1.0" ?> <!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'> <!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg width="800px" height="800px" viewBox="0 0 8.66 8.66" style="shape-rendering:geometricPrecision; text-renderi...
svgen500k-Duotone_Business_Vectors_Colle
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 1997}
synth-mpl-34c8e40678bacc90
{"chart_type": "bar", "data": [{"x": "Editor", "y": 2}, {"x": "Manager", "y": 1}, {"x": "Photo", "y": 2}, {"x": "Proof Manager", "y": 1}], "encoding": {"x": "role_description", "y": "count(*)", "color": null}, "title": "Show a bar chart about how many employees does each role have?, sort x-axis from low to high order."...
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="580.929219pt" height="279.696023pt" viewBox="0 0 580.929219 279.696023" xmlns="http://www.w3.org/2000/svg" version="1.1"> <metadata> <rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/...
synth-matplotlib
{"chart_type": "bar", "num_points": 4, "svg_size_bytes": 13222}
svgen-bf3757fc9b12cccc
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Microphone", "x_label": null, "y_label": null, "_freeform_description": "Icon of Microphone"}
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" ...
svgen500k-Circled_Simple_Line_Icons_Coll
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 3979}
synth-mpl-23240d28b101a7a7
{"chart_type": "bar", "data": [{"x": "North Carolina", "y": 0.875}, {"x": "Duke", "y": 0.813}, {"x": "Clemson", "y": 0.625}, {"x": "Virginia Tech", "y": 0.563}], "encoding": {"x": "Team_Name", "y": "ACC_Percent", "color": null}, "title": "Give me the comparison about ACC_Percent over the Team_Name by a bar chart.", ...
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="472.952187pt" height="279.44493pt" viewBox="0 0 472.952187 279.44493" xmlns="http://www.w3.org/2000/svg" version="1.1"> <metadata> <rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02...
synth-matplotlib
{"chart_type": "bar", "num_points": 4, "svg_size_bytes": 9958}
svgen-e718ae9711f384f2
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Durian Food Fruit", "x_label": null, "y_label": null, "_freeform_description": "Icon of Durian Food Fruit"}
<?xml version="1.0" ?> <!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg width="800px" height="800px" viewBox="0 0 132.29168 132.29168" id="svg8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xm...
svgen500k-Fruit_Japanese_Style_Line_Coll
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 16032}
synth-mpl-2c588a4b702b5172
{"chart_type": "bar", "data": [{"x": "Nagoya , Japan", "y": 1}, {"x": "Osaka , Japan", "y": 1}, {"x": "Sapporo , Japan", "y": 1}, {"x": "Tijuana , Mexico", "y": 3}, {"x": "Tokyo , Japan", "y": 4}], "encoding": {"x": "Location", "y": "COUNT(Location)", "color": null}, "title": null, "x_label": "Location", "y_label": "CO...
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="424.438437pt" height="280.966336pt" viewBox="0 0 424.438437 280.966336" xmlns="http://www.w3.org/2000/svg" version="1.1"> <metadata> <rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/...
synth-matplotlib
{"chart_type": "bar", "num_points": 5, "svg_size_bytes": 13459}
svgen-c9855d44193d77ec
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Orangutan", "x_label": null, "y_label": null, "_freeform_description": "Icon of Orangutan"}
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg width="800px" height="800px" viewBox="0 0 72 72" id="emoji" xmlns="http://www.w3.org/2000/svg"> <g id="color"> <g> <g> <path fill="#e27022" d="M20.4623,52.9662a68.7312,68.7312,...
svgen500k-Openmoji_Vectors_Collection_13
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 5663}
svgen-47d61cc4b138b72d
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Smiley 3", "x_label": null, "y_label": null, "_freeform_description": "Icon of Smiley 3"}
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg version="1.0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.or...
svgen500k-Ego_Cornered_Line_Icons_Collec
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 3147}
svgen-a7b9966fbcf11ce3
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Magnifier", "x_label": null, "y_label": null, "_freeform_description": "Icon of Magnifier"}
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg width="800px" height="800px" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_901_1299)"> <path d="M21.4327 25.6768L26.2927 30.5348C26.6837 30.9258 27...
svgen500k-Nimble_Tiny_Line_Icons_Collect
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 928}
svgen-49e1ce206c7f7b7e
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Browser Pin", "x_label": null, "y_label": null, "_freeform_description": "Icon of Browser Pin"}
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="800px" height="800px" viewBox="0 0 60 60" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"> <!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG...
svgen500k-Soft_Color_Illustration_Freebi
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 1716}
synth-mpl-3cb058066cd98511
{"chart_type": "bar", "data": [{"x": "Black/White", "y": 2}, {"x": "RBG", "y": 8}], "encoding": {"x": "color", "y": "COUNT(color)", "color": null}, "title": "Bar chart x axis color y axis the number of color, show in ascending by the y axis please.", "x_label": "color", "y_label": "COUNT(color)"}
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="505.431406pt" height="280.281648pt" viewBox="0 0 505.431406 280.281648" xmlns="http://www.w3.org/2000/svg" version="1.1"> <metadata> <rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/...
synth-matplotlib
{"chart_type": "bar", "num_points": 2, "svg_size_bytes": 11724}
svgen-429181fd1848db3e
{"chart_type": "unknown", "data": [], "encoding": {"x": null, "y": null, "color": null}, "title": "Terms Of Delivery", "x_label": null, "y_label": null, "_freeform_description": "Icon of Terms Of Delivery"}
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <svg width="800px" height="800px" viewBox="0 0 90 90" xmlns="http://www.w3.org/2000/svg"> <defs> <style>.cls-1{fill:#ffffff;}.cls-2{fill:#ffeb97;}.cls-3{fill:#576065;}.cls-4{fill:#ff8898;}.cls-5{fill...
svgen500k-E_Commerce_Flat_Line_Vectors_C
{"chart_type": "unknown", "num_points": 0, "svg_size_bytes": 2231}
synth-mpl-bdb83054eb5b3dda
{"chart_type": "donut", "data": [{"x": "b", "y": 3}, {"x": "c", "y": 2}, {"x": "e", "y": 4}, {"x": "n", "y": 1}, {"x": "x", "y": 5}], "encoding": {"x": "Location_Code", "y": "COUNT(Location_Code)", "color": null}, "title": null, "x_label": "Location_Code", "y_label": "COUNT(Location_Code)"}
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="280.8pt" height="280.8pt" viewBox="0 0 280.8 280.8" xmlns="http://www.w3.org/2000/svg" version="1.1"> <metadata> <rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#...
synth-matplotlib
{"chart_type": "donut", "num_points": 5, "svg_size_bytes": 5084}
End of preview. Expand in Data Studio

SVG Chart Render Mix v1

Training data for fine-tuning a small code model (DeepSeek Coder 1.3B) to map (chart specification JSON) to inline SVG code.

Part of the SQL Agent LLMOps project.

Total Sources Input Output
~25,000 rows 2 structured JSON chart spec rendered SVG string

Part of the SQL Agent LLMOps project

Dataset Model Role
DanielRegaladoCardoso/text-to-sql-mix-v2 Qwen 2.5 Coder 7B NL question to SQL
DanielRegaladoCardoso/chart-reasoning-mix-v1 Phi-3 Mini 3.8B (question + result) to chart spec
DanielRegaladoCardoso/svg-chart-render-v1 DeepSeek Coder 1.3B chart spec to SVG

Schema

Field Type Description
id string Stable hash-based identifier
chart_spec string (JSON) Input: chart type, data points, encoding, title, axis labels
svg_code string Target output: full <svg>...</svg> inline SVG
source string Origin tag (see source attribution)
metadata string (JSON) chart_type, num_points, svg_size_bytes

Note: chart_spec and metadata are stored as JSON strings in the parquet. Parse with json.loads(row["chart_spec"]) after loading.

chart_spec structure

{
  "chart_type": "bar|line|scatter|donut|histogram|area",
  "data": [{"x": "value", "y": "value", "color": "value|null"}],
  "encoding": {"x": "col_name", "y": "col_name", "color": "col_name|null"},
  "title": "string or null",
  "x_label": "string or null",
  "y_label": "string or null"
}

Splits

Split Rows
train ~23,750
validation ~625
test ~625

Source attribution

Source Tag in source Rows License Link Method Notes
nvBench chart renders synth-matplotlib ~10,500 Apache-2.0 (pipeline) + MIT (nvBench data) nvBench GitHub Programmatic Each of 7,247 nvBench chart configs rendered via matplotlib's SVG backend. Up to 3 title-augmented variants per entry. Chart types: bar, line, scatter, donut. Perfect (spec, svg) pairs.
svgen-500k filtered svgen500k-* ~15,000 Per upstream row umuthopeyildirim/svgen-500k Filtered Streamed 216k SVGs, heuristic-filtered to chart-shaped structures (multi-element: has <rect>, <line>, <g>). Rejects single-path icons. Provides general SVG syntax fluency.

Pipeline

Build script: training/data_pipelines/build_svg_mix.py

Three stages:

  1. synth-charts -- load nvBench chart configs, replay each in matplotlib (Agg/SVG backend), augment with NL paraphrases as candidate titles.
  2. svgen -- stream umuthopeyildirim/svgen-500k, keep only chart-shaped SVGs.
  3. combine-push -- dedup by SVG hash, 95/2.5/2.5 split, push to HF with card.

Usage

from datasets import load_dataset
import json

ds = load_dataset("DanielRegaladoCardoso/svg-chart-render-v1")
ex = ds["train"][0]

spec = json.loads(ex["chart_spec"])
print(spec["chart_type"])
print(ex["svg_code"][:200])

SFT format

import json

def to_sft(row):
    return {
        "messages": [
            {"role": "system", "content": "You render chart specifications as inline SVG."},
            {"role": "user", "content": "Render this chart spec as SVG:\n\n" + row["chart_spec"]},
            {"role": "assistant", "content": row["svg_code"]},
        ]
    }

Known limitations

  • SVGs from synth-matplotlib carry matplotlib's stylistic defaults (font, axes, ticks). The model will produce matplotlib-flavored SVGs.
  • svgen500k-* rows have no structured chart_spec -- only freeform title and _freeform_description are populated.
  • SVGs are capped at 50 KB to keep training tractable.
  • Only 6 chart types covered (bar, line, scatter, donut, histogram, area).

Citation

@dataset{regalado2026svgmix,
  author = {Regalado Cardoso, Daniel},
  title  = {SVG Chart Render Mix v1},
  year   = {2026},
  url    = {https://huggingface.co/datasets/DanielRegaladoCardoso/svg-chart-render-v1}
}

License

Pipeline and curation: Apache-2.0. nvBench data is MIT-licensed. svgen-500k rows carry per-row license fields from their upstream sources. See the source attribution table.


Built by Daniel Regalado Cardoso -- MSBA, University of Miami -- April 2026.

Downloads last month
25