Datasets:
id stringlengths 8 23 | conversations listlengths 2 2 |
|---|---|
classDiagram_0933 | [
{
"from": "user",
"value": "Picture 1: <img>images/classDiagram/medium/classDiagram_0933_d96139.png</img>\nConvert this diagram to Mermaid code. Provide only the Mermaid syntax."
},
{
"from": "assistant",
"value": "classDiagram\n class RideParticipant {\n <<interface>>\n +String... |
classDiagram_0350 | [
{
"from": "user",
"value": "Picture 1: <img>images/classDiagram/easy/classDiagram_0350_2081c2.png</img>\nWhat is the Mermaid representation of this diagram?"
},
{
"from": "assistant",
"value": "classDiagram\n class Flight {\n +String flightNumber\n +Date departureTime\n +... |
hard_0378 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/hard/hard_0378_retry_1.png</img>\nGenerate Mermaid code that represents this diagram."
},
{
"from": "assistant",
"value": "graph TD\n Start([Start: Permission Check Request]) --> Init[Initialize: depth=0, granted=false, cache=empty,... |
sequenceDiagram_0236 | [
{
"from": "user",
"value": "Picture 1: <img>images/sequenceDiagram/hard/sequenceDiagram_0236_b093e0.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "sequenceDiagram\n participant Client\n participant API as API Gateway\n participant Ctrl as Up... |
ishikawa_0078 | [
{
"from": "user",
"value": "Picture 1: <img>images/ishikawa/easy/ishikawa_0078_aa38d8.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "ishikawa\n Security breach\n Access control\n Weak passwords\n Excessive user privile... |
sequenceDiagram_1153 | [
{
"from": "user",
"value": "Picture 1: <img>images/sequenceDiagram/medium/sequenceDiagram_1153_3fb3ee.png</img>\nConvert this diagram to Mermaid code."
},
{
"from": "assistant",
"value": "sequenceDiagram\n participant Client as Web Client\n participant CommandAPI as Command API\n partic... |
medium_1405 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/medium/medium_1405_5d7622.png</img>\nProvide the Mermaid code for this diagram."
},
{
"from": "assistant",
"value": "graph TD\n Start[Client initiates connection to endpoint] --> SecurityCheck[Security layer filters malicious traffi... |
hard_0227 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/hard/hard_0227_retry_1.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "graph TD\n Start([Start: Nested Data Structure Traversal]) --> Init[Initialize: stack = empty, visited = empty set, ... |
pie_0212 | [
{
"from": "user",
"value": "Picture 1: <img>images/pie/easy/pie_0212_8b715f.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "sequenceDiagram\n actor User\n participant AppService as App Service\n participant SSOProvider as SSO Provider\n\n ... |
erDiagram_0397 | [
{
"from": "user",
"value": "Picture 1: <img>images/erDiagram/hard/erDiagram_0397_c7acbb.png</img>\nProvide the Mermaid code for this diagram."
},
{
"from": "assistant",
"value": "erDiagram\n MEMBER {\n string member_id PK\n string full_name\n string email\n date jo... |
kanban_0146 | [
{
"from": "user",
"value": "Picture 1: <img>images/kanban/easy/kanban_0146_d79568.png</img>\nWrite the Mermaid syntax that would generate this diagram."
},
{
"from": "assistant",
"value": "kanban\n todo[Todo]\n defineSprintScope@{ ticket: PROJ-101 }\n createLoginWireframes@{ tic... |
treeview_0147 | [
{
"from": "user",
"value": "Picture 1: <img>images/treeview/easy/treeview_0147_102391.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "treeView-beta\n \"Advanced Machine Learning\"\n \"Machine Learning\"\n \"Probability and Statist... |
packet_0179 | [
{
"from": "user",
"value": "Picture 1: <img>images/packet/easy/packet_0179_ea1e3d.png</img>\nConvert this diagram to Mermaid code. Provide only the Mermaid syntax."
},
{
"from": "assistant",
"value": "packet-beta\n title TLS Record Layer Header\n 0-7: \"Content Type\"\n 8-15: \"Legacy V... |
stateDiagram_0352 | [
{
"from": "user",
"value": "Picture 1: <img>images/stateDiagram/easy/stateDiagram_0352_d3b6e8.png</img>\nGenerate Mermaid code that represents this diagram."
},
{
"from": "assistant",
"value": "zenuml\n @Client Client\n @Service ServiceA\n @Service ServiceB\n @Service ServiceC\n\n ... |
venn_0062 | [
{
"from": "user",
"value": "Picture 1: <img>images/venn/medium/venn_0062_c21659.png</img>\nProvide the Mermaid code for this diagram."
},
{
"from": "assistant",
"value": "venn-beta\n title \"Python and JavaScript Language Features\"\n set A[\"Python\"]:20\n text A1[\"Indentation-based synta... |
zenuml_0061 | [
{
"from": "user",
"value": "Picture 1: <img>images/zenuml/medium/zenuml_0061_3e13f3.png</img>\nProvide the Mermaid code for this diagram."
},
{
"from": "assistant",
"value": "zenuml\n @Client OrderClient\n @Gateway StreamGateway\n @Service OrderStreamService\n @Service TokenService\n... |
sequenceDiagram_1542 | [
{
"from": "user",
"value": "Picture 1: <img>images/sequenceDiagram/medium/sequenceDiagram_1542_8d82dd.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "sequenceDiagram\n participant ApplicationService\n participant TransactionCoordinator\n part... |
architecture_0040 | [
{
"from": "user",
"value": "Picture 1: <img>images/architecture/easy/architecture_0040_ae87e0.png</img>\nConvert this diagram to Mermaid code. Provide only the Mermaid syntax."
},
{
"from": "assistant",
"value": "architecture-beta\ngroup platform(cloud)[Web Application Platform]\ngroup web_tier(... |
stateDiagram_0988 | [
{
"from": "user",
"value": "Picture 1: <img>images/stateDiagram/hard/stateDiagram_0988_99c310.png</img>\nAnalyze this diagram and output the equivalent Mermaid code."
},
{
"from": "assistant",
"value": "stateDiagram-v2\n [*] --> Registered : signUp()\n\n Registered --> VerificationFork : s... |
block_0011 | [
{
"from": "user",
"value": "Picture 1: <img>images/block/easy/block_0011_f780ca.png</img>\nProvide the Mermaid code for this diagram."
},
{
"from": "assistant",
"value": "block-beta\n columns 3\n block:delivery\n columns 2\n browser[\"Browser\"]\n block:edgeLayer\n ... |
journey_0176 | [
{
"from": "user",
"value": "Picture 1: <img>images/journey/medium/journey_0176_beb86f.png</img>\nGenerate Mermaid code that represents this diagram."
},
{
"from": "assistant",
"value": "journey\n title Customer Onboarding: Sign-up to First Value Milestone\n section Discover\n Visit ... |
easy_0472 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/easy/easy_0472_d32cfe.png</img>\nWhat is the Mermaid representation of this diagram?"
},
{
"from": "assistant",
"value": "graph TD\n Start --> A[Enter details]\n A --> B{Details valid?}\n B -->|Yes| C[Submit form]\n B -->|N... |
hard_0556 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/hard/hard_0556_8db51e.png</img>\nConvert this diagram to Mermaid code."
},
{
"from": "assistant",
"value": "graph TD\n Start([Start: Multi-level Approval Workflow]) --> Init[Initialize: requestQueue, approvalLevel=0, rejectionCount=... |
classDiagram_0750 | [
{
"from": "user",
"value": "Picture 1: <img>images/classDiagram/hard/classDiagram_0750_fa8b06.png</img>\nWrite the Mermaid syntax that would generate this diagram."
},
{
"from": "assistant",
"value": "classDiagram\n class Person {\n <<abstract>>\n +String name\n +int age\... |
medium_1558 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/medium/medium_1558_39a3c3.png</img>\nGenerate Mermaid code that represents this diagram."
},
{
"from": "assistant",
"value": "graph TD\n Start([Start Payment Process]) --> ValidateCart{Cart Valid?}\n ValidateCart -->|No| ErrorEnd... |
venn_0259 | [
{
"from": "user",
"value": "Picture 1: <img>images/venn/medium/venn_0259_059a48.png</img>\nWrite the Mermaid syntax that would generate this diagram."
},
{
"from": "assistant",
"value": "venn-beta\n title \"Content Types for SEO, Social, and Email Marketing\"\n set searchEmail[\"Search and Ema... |
medium_0225 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/medium/medium_0225_cda758.png</img>\nGenerate Mermaid code that represents this diagram."
},
{
"from": "assistant",
"value": "graph TD\n Start[Initialize user permission check process]\n CheckAuth{Check if user session is authent... |
classDiagram_0414 | [
{
"from": "user",
"value": "Picture 1: <img>images/classDiagram/easy/classDiagram_0414_bd98c6.png</img>\nAnalyze this diagram and output the equivalent Mermaid code."
},
{
"from": "assistant",
"value": "classDiagram\n class Device {\n +String deviceId\n +String name\n +St... |
erDiagram_0973 | [
{
"from": "user",
"value": "Picture 1: <img>images/erDiagram/hard/erDiagram_0973_5ee6a9.png</img>\nConvert this diagram to Mermaid code."
},
{
"from": "assistant",
"value": "erDiagram\n AIRLINE {\n string airline_id PK\n string name\n string country\n }\n FLIGHT {\n... |
erDiagram_0042 | [
{
"from": "user",
"value": "Picture 1: <img>images/erDiagram/easy/erDiagram_0042_7473d1.png</img>\nWrite the Mermaid syntax that would generate this diagram."
},
{
"from": "assistant",
"value": "erDiagram\n BOOK {\n string book_id PK\n string title\n string publisher_id F... |
ishikawa_0001 | [
{
"from": "user",
"value": "Picture 1: <img>images/ishikawa/hard/ishikawa_0001_902183.png</img>\nConvert this diagram to Mermaid code."
},
{
"from": "assistant",
"value": "ishikawa\n Website outage root causes\n Server\n Hardware failure\n Disk crash\n Memory f... |
erDiagram_0725 | [
{
"from": "user",
"value": "Picture 1: <img>images/erDiagram/hard/erDiagram_0725_8820c8.png</img>\nWrite the Mermaid syntax that would generate this diagram."
},
{
"from": "assistant",
"value": "erDiagram\n USER {\n string user_id PK\n string name\n string email\n ... |
requirementDiagram_0144 | [
{
"from": "user",
"value": "Picture 1: <img>images/requirementDiagram/easy/requirementDiagram_0144_10d45d.png</img>\nWhat is the Mermaid representation of this diagram?"
},
{
"from": "assistant",
"value": "requirementDiagram\n requirement rate_limit_policy {\n id: RQ001\n text: ... |
C4Context_0005 | [
{
"from": "user",
"value": "Picture 1: <img>images/C4Context/easy/C4Context_0005_c8d052.png</img>\nWhat is the Mermaid representation of this diagram?"
},
{
"from": "assistant",
"value": "C4Component\n title News Aggregator Component Architecture\n\n Person(reader, \"News Reader\", \"Reads... |
packet_0084 | [
{
"from": "user",
"value": "Picture 1: <img>images/packet/medium/packet_0084_0bede4.png</img>\nWrite the Mermaid syntax that would generate this diagram."
},
{
"from": "assistant",
"value": "packet-beta\n title ARP Request Packet\n 0-15: \"Hardware Type\"\n 16-31: \"Protocol Type\"\n ... |
radar_0080 | [
{
"from": "user",
"value": "Picture 1: <img>images/radar/hard/radar_0080_27fb7c.png</img>\nGenerate Mermaid code that represents this diagram."
},
{
"from": "assistant",
"value": "radar-beta\n title Programming Language Traits Comparison\n axis performance[\"Performance\"], readability[\"Reada... |
block_0056 | [
{
"from": "user",
"value": "Picture 1: <img>images/block/hard/block_0056_a42f4e.png</img>\nAnalyze this diagram and output the equivalent Mermaid code."
},
{
"from": "assistant",
"value": "block-beta\ncolumns 3\n\nUP[\"User Upload\"] space CDN[\"CDN Edge Network\"]\n\nblock:Pipeline1:3\ncolumns ... |
radar_0152 | [
{
"from": "user",
"value": "Picture 1: <img>images/radar/hard/radar_0152_901596.png</img>\nProvide the Mermaid code for this diagram."
},
{
"from": "assistant",
"value": "radar-beta\n title Startup Evaluation Comparison\n axis team[\"Team\"], market[\"Market Size\"], product[\"Product\"], trac... |
timeline_0061 | [
{
"from": "user",
"value": "Picture 1: <img>images/timeline/easy/timeline_0061_fc48c4.png</img>\nGenerate Mermaid code that represents this diagram."
},
{
"from": "assistant",
"value": "timeline\n title Database Evolution\n section Flat File Era\n 1960s : Sequential files dominate\n... |
medium_0258 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/medium/medium_0258_retry_1.png</img>\nConvert this diagram to Mermaid code. Provide only the Mermaid syntax."
},
{
"from": "assistant",
"value": "flowchart TD\n RetryLimit{Check if backup succeeded or retryable}\n RetryLimit -->|... |
mindmap_0521 | [
{
"from": "user",
"value": "Picture 1: <img>images/mindmap/hard/mindmap_0521_e206ec.png</img>\nWhat is the Mermaid representation of this diagram?"
},
{
"from": "assistant",
"value": "mindmap\n root((Database Types))\n Relational\n Structure\n Tables\n Rows and Columns\n ... |
sequenceDiagram_1011 | [
{
"from": "user",
"value": "Picture 1: <img>images/sequenceDiagram/medium/sequenceDiagram_1011_f8e667.png</img>\nAnalyze this diagram and output the equivalent Mermaid code."
},
{
"from": "assistant",
"value": "sequenceDiagram\n participant Customer Browser\n participant Merchant Checkout\... |
mindmap_0353 | [
{
"from": "user",
"value": "Picture 1: <img>images/mindmap/medium/mindmap_0353_5f978e.png</img>\nConvert this diagram to Mermaid code."
},
{
"from": "assistant",
"value": "mindmap\n root((Software Testing))\n (Unit Testing)\n [Integration Testing]\n ((System Testing))\n )Acceptance ... |
classDiagram_1146 | [
{
"from": "user",
"value": "Picture 1: <img>images/classDiagram/hard/classDiagram_1146_1f6436.png</img>\nConvert this diagram to Mermaid code."
},
{
"from": "assistant",
"value": "classDiagram\n class Library {\n +String name\n +String address\n +addCatalog(Catalog c) voi... |
medium_1646 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/medium/medium_1646_1e6354.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "graph TD\n Start([Start: Receive Message]) --> ValidateFormat{Valid Message Format?}\n ValidateFormat -->|No| ... |
classDiagram_0132 | [
{
"from": "user",
"value": "Picture 1: <img>images/classDiagram/easy/classDiagram_0132_d96139.png</img>\nWhat is the Mermaid representation of this diagram?"
},
{
"from": "assistant",
"value": "classDiagram\n class Driver {\n +String driverId\n +String name\n -float avera... |
sequenceDiagram_0686 | [
{
"from": "user",
"value": "Picture 1: <img>images/sequenceDiagram/hard/sequenceDiagram_0686_e14f2f.png</img>\nGenerate Mermaid code that represents this diagram."
},
{
"from": "assistant",
"value": "sequenceDiagram\n participant Client\n participant Scheduler\n participant Queue\n p... |
quadrantChart_0031 | [
{
"from": "user",
"value": "Picture 1: <img>images/quadrantChart/easy/quadrantChart_0031_d65e25.png</img>\nGenerate Mermaid code that represents this diagram."
},
{
"from": "assistant",
"value": "quadrantChart\n title Risk Assessment: Probability vs Impact\n x-axis Low Probability --> High... |
hard_0251 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/hard/hard_0251_retry_1.png</img>\nWhat is the Mermaid representation of this diagram?"
},
{
"from": "assistant",
"value": "graph TD\n Start([Start Matrix Multiplication]) --> ValidateInput{Are matrices A and B compatible?}\n Vali... |
xychart_0213 | [
{
"from": "user",
"value": "Picture 1: <img>images/xychart/easy/xychart_0213_a2ea10.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "xychart-beta\n title \"Net User Signups After Churn by Quarter\"\n x-axis [Q1, Q2, Q3, Q4, Q5]\n y-axis \"Net ... |
sankey_0134 | [
{
"from": "user",
"value": "Picture 1: <img>images/sankey/hard/sankey_0134_f0f83f.png</img>\nAnalyze this diagram and output the equivalent Mermaid code."
},
{
"from": "assistant",
"value": "sankey-beta\nOrganic Search,Site Visits,5000\nPaid Ads,Site Visits,3000\nSocial Media,Site Visits,1500\nE... |
stateDiagram_0789 | [
{
"from": "user",
"value": "Picture 1: <img>images/stateDiagram/medium/stateDiagram_0789_d6342c.png</img>\nProvide the Mermaid code for this diagram."
},
{
"from": "assistant",
"value": "stateDiagram-v2\n [*] --> Draft : create document\n Draft --> ReviewWorkflow : submit for review\n R... |
timeline_0087 | [
{
"from": "user",
"value": "Picture 1: <img>images/timeline/easy/timeline_0087_9d3511.png</img>\nConvert this diagram to Mermaid code."
},
{
"from": "assistant",
"value": "timeline\n title Pandemic Response Timeline: Detection to Vaccine Rollout\n section Detection\n December 2019 :... |
hard_0088 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/hard/hard_0088_0af383.png</img>\nAnalyze this diagram and output the equivalent Mermaid code."
},
{
"from": "assistant",
"value": "graph TD\n Start([Start Layered Authentication]) --> InitVars[Initialize: attemptCount=0, authLevel=0... |
sankey_0016 | [
{
"from": "user",
"value": "Picture 1: <img>images/sankey/medium/sankey_0016_e675b3.png</img>\nConvert this diagram to Mermaid code."
},
{
"from": "assistant",
"value": "sankey-beta\nEnrolled students,Year 1 full-time,1000\nEnrolled students,Year 1 part-time,300\nEnrolled students,Dropped before... |
C4Context_0410 | [
{
"from": "user",
"value": "Picture 1: <img>images/C4Context/medium/C4Context_0410_8e705c.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "C4Container\n title E-commerce Platform Container Diagram\n Person(shopper, \"Shopper\", \"Browses products... |
quadrantChart_0007 | [
{
"from": "user",
"value": "Picture 1: <img>images/quadrantChart/hard/quadrantChart_0007_d65e25.png</img>\nGenerate Mermaid code that represents this diagram."
},
{
"from": "assistant",
"value": "quadrantChart\n title Risk assessment: probability vs impact\n x-axis Low Probability --> High... |
easy_0626 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/easy/easy_0626_be799a.png</img>\nProvide the Mermaid code for this diagram."
},
{
"from": "assistant",
"value": "graph TD\n A[Start] --> B[Enter birth date]\n B --> C{Is age 18 plus?}\n C -->|Yes| D[Grant access]\n C -->|No... |
quadrantChart_0021 | [
{
"from": "user",
"value": "Picture 1: <img>images/quadrantChart/hard/quadrantChart_0021_dc46ef.png</img>\nProvide the Mermaid code for this diagram."
},
{
"from": "assistant",
"value": "quadrantChart\n title API Endpoints: Usage Frequency vs Latency\n x-axis Low Usage --> High Usage\n ... |
sequenceDiagram_1666 | [
{
"from": "user",
"value": "Picture 1: <img>images/sequenceDiagram/easy/sequenceDiagram_1666_311dee.png</img>\nConvert this diagram to Mermaid code. Provide only the Mermaid syntax."
},
{
"from": "assistant",
"value": "mindmap\n root((Project Planning))\n )Scope Management(\n [Requireme... |
hard_0154 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/hard/hard_0154_730966.png</img>\nWrite the Mermaid syntax that would generate this diagram."
},
{
"from": "assistant",
"value": "graph TD\n Start([Start: Nested Data Structure Traversal]) --> Init[Initialize: stack = empty, visited ... |
hard_0481 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/hard/hard_0481_retry_1.png</img>\nGenerate Mermaid code that represents this diagram."
},
{
"from": "assistant",
"value": "graph TD\n Start([Start Multi-level Sort]) --> InputData[Input: Array arr, size n, Sort criteria levels]\n ... |
architecture_0114 | [
{
"from": "user",
"value": "Picture 1: <img>images/architecture/hard/architecture_0114_fad87b.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "architecture-beta\n service client(user)[Client]\n service proxy(server)[Proxy Router]\n service sha... |
gantt_0175 | [
{
"from": "user",
"value": "Picture 1: <img>images/gantt/medium/gantt_0175_7e9bad.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "gantt\n title Quarterly OKR Execution with Milestones\n dateFormat YYYY-MM-DD\n\n section Objective Setting\n ... |
pie_0147 | [
{
"from": "user",
"value": "Picture 1: <img>images/pie/hard/pie_0147_e2d7a4.png</img>\nProvide the Mermaid code for this diagram."
},
{
"from": "assistant",
"value": "pie showData\n title Website Traffic Sources\n \"Organic Search\" : 65.2\n \"Direct\" : 12.4\n \"Paid Search\" : 9.8\... |
medium_0066 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/medium/medium_0066_42b1a8.png</img>\nWrite the Mermaid syntax that would generate this diagram."
},
{
"from": "assistant",
"value": "graph TD\n Start([Start Form Submission]) --> ValidateName{Name field valid?}\n ValidateName -->... |
requirementDiagram_0061 | [
{
"from": "user",
"value": "Picture 1: <img>images/requirementDiagram/easy/requirementDiagram_0061_882e18.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "requirementDiagram\n requirement collision_avoidance_requirement {\n id: AVSAF001\n ... |
hard_0365 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/hard/hard_0365_retry_2.png</img>\nProvide the Mermaid code for this diagram."
},
{
"from": "assistant",
"value": "graph TD\n Start([Start Message Handler]) --> InitState[Initialize: msgQueue=empty, retryCount=0, state=IDLE]\n Ini... |
gantt_0090 | [
{
"from": "user",
"value": "Picture 1: <img>images/gantt/hard/gantt_0090_3f4738.png</img>\nWhat is the Mermaid representation of this diagram?"
},
{
"from": "assistant",
"value": "gantt\n title Mobile App v2.0 Development\n dateFormat YYYY-MM-DD\n excludes weekends\n\n section Planni... |
architecture_0192 | [
{
"from": "user",
"value": "Picture 1: <img>images/architecture/easy/architecture_0192_697e65.png</img>\nAnalyze this diagram and output the equivalent Mermaid code."
},
{
"from": "assistant",
"value": "architecture-beta\n service onpremapp(server)[On-Premises Application]\n service onprem... |
hard_0425 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/hard/hard_0425_retry_1.png</img>\nConvert this diagram to Mermaid code."
},
{
"from": "assistant",
"value": "graph TD\n Start([Start: Multi-Level Form Validation]) --> InitConfig[Load validation rules and schema definitions]\n In... |
mindmap_0067 | [
{
"from": "user",
"value": "Picture 1: <img>images/mindmap/medium/mindmap_0067_2c8127.png</img>\nConvert this diagram to Mermaid code."
},
{
"from": "assistant",
"value": "mindmap\n root((Finance))\n Assets\n Liabilities\n Equity\n Income\n Expenses"
}
] |
block_0078 | [
{
"from": "user",
"value": "Picture 1: <img>images/block/hard/block_0078_a42f4e.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "block-beta\ncolumns 3\n\nblock:Ingestion:3\n columns 3\n Uploader[\"Upload Service\"] Validator[\"File Validator\"] Metad... |
pie_0065 | [
{
"from": "user",
"value": "Picture 1: <img>images/pie/medium/pie_0065_a16bab.png</img>\nAnalyze this diagram and output the equivalent Mermaid code."
},
{
"from": "assistant",
"value": "pie showData\n title IT Budget Breakdown\n \"Hardware\" : 20\n \"Software\" : 25\n \"Cloud Servic... |
medium_0891 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/medium/medium_0891_672b0c.png</img>\nWrite the Mermaid syntax that would generate this diagram."
},
{
"from": "assistant",
"value": "graph TD\n Start([User Initiates File Upload]) --> CheckFileSelected{File Selected?}\n CheckFile... |
sequenceDiagram_0036 | [
{
"from": "user",
"value": "Picture 1: <img>images/sequenceDiagram/medium/sequenceDiagram_0036_43b049.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "sequenceDiagram\n participant Customer as Customer\n participant Coordinator as Saga Coordinato... |
erDiagram_0175 | [
{
"from": "user",
"value": "Picture 1: <img>images/erDiagram/hard/erDiagram_0175_163a1d.png</img>\nAnalyze this diagram and output the equivalent Mermaid code."
},
{
"from": "assistant",
"value": "erDiagram\n CUSTOMER {\n string customer_id PK\n string name\n string email... |
xychart_0072 | [
{
"from": "user",
"value": "Picture 1: <img>images/xychart/hard/xychart_0072_0f01da.png</img>\nProvide the Mermaid code for this diagram."
},
{
"from": "assistant",
"value": "xychart-beta\n title \"Temperature and Precipitation by Month\"\n x-axis [Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, S... |
treemap_0018 | [
{
"from": "user",
"value": "Picture 1: <img>images/treemap/easy/treemap_0018_455918.png</img>\nAnalyze this diagram and output the equivalent Mermaid code."
},
{
"from": "assistant",
"value": "treemap-beta\n title Website Traffic by Country and City\n \"Global Website Traffic\"\n \"... |
zenuml_0224 | [
{
"from": "user",
"value": "Picture 1: <img>images/zenuml/easy/zenuml_0224_dead43.png</img>\nWrite the Mermaid syntax that would generate this diagram."
},
{
"from": "assistant",
"value": "sequenceDiagram\n participant User as Resource Owner\n participant Client as Client Application\n ... |
sankey_0158 | [
{
"from": "user",
"value": "Picture 1: <img>images/sankey/hard/sankey_0158_c68944.png</img>\nConvert this diagram to Mermaid code. Provide only the Mermaid syntax."
},
{
"from": "assistant",
"value": "sankey-beta\nSource Modules,Compiled Binaries,120\nConfig Files,Compiled Binaries,40\nCompiled ... |
classDiagram_1382 | [
{
"from": "user",
"value": "Picture 1: <img>images/classDiagram/medium/classDiagram_1382_2081c2.png</img>\nConvert this diagram to Mermaid code."
},
{
"from": "assistant",
"value": "classDiagram\n class Flight {\n +String flightNumber\n +Date departureTime\n +Date arrival... |
pie_0270 | [
{
"from": "user",
"value": "Picture 1: <img>images/pie/hard/pie_0270_57785b.png</img>\nConvert this diagram to Mermaid code. Provide only the Mermaid syntax."
},
{
"from": "assistant",
"value": "pie\n title Carbon Emissions by Sector\n \"Transport\" : 26\n \"Industry\" : 25\n \"Build... |
medium_1634 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/medium/medium_1634_retry_1.png</img>\nWhat is the Mermaid representation of this diagram?"
},
{
"from": "assistant",
"value": "graph TD\n Start[Incoming API Request Received] --> CheckAPIKey{Is the provided API key valid?}\n \n ... |
pie_0003 | [
{
"from": "user",
"value": "Picture 1: <img>images/pie/hard/pie_0003_323cc5.png</img>\nWhat is the Mermaid representation of this diagram?"
},
{
"from": "assistant",
"value": "pie\n title Browser Market Share (Balanced)\n \"Chrome\" : 21\n \"Safari\" : 19\n \"Firefox\" : 20\n \"Ed... |
C4Context_0307 | [
{
"from": "user",
"value": "Picture 1: <img>images/C4Context/hard/C4Context_0307_b0f000.png</img>\nAnalyze this diagram and output the equivalent Mermaid code."
},
{
"from": "assistant",
"value": "C4Container\ntitle Container Diagram β Video Streaming Platform\n\nPerson(subscriber, \"Subscriber\... |
gantt_0004 | [
{
"from": "user",
"value": "Picture 1: <img>images/gantt/easy/gantt_0004_17dffe.png</img>\nAnalyze this diagram and output the equivalent Mermaid code."
},
{
"from": "assistant",
"value": "gantt\n title Event Planning Project\n dateFormat YYYY-MM-DD\n\n section Planning\n Select even... |
gitGraph_0798 | [
{
"from": "user",
"value": "Picture 1: <img>images/gitGraph/hard/gitGraph_0798_a84060.png</img>\nProvide the Mermaid code for this diagram."
},
{
"from": "assistant",
"value": "gitGraph\n commit id: \"initial project setup\"\n branch develop\n checkout develop\n commit id: \"setup build ... |
zenuml_0030 | [
{
"from": "user",
"value": "Picture 1: <img>images/zenuml/hard/zenuml_0030_9c3607.png</img>\nAnalyze this diagram and output the equivalent Mermaid code."
},
{
"from": "assistant",
"value": "zenuml\n @Actor EventSource\n @Service WebhookDispatcher\n @Queue RetryQueue\n @Endpoint Subs... |
medium_0442 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/medium/medium_0442_2f1857.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "graph TD\n Start([Content Submitted]) --> AutoScan[Automated Content Scan]\n AutoScan --> RiskLevel{Risk Level... |
journey_0221 | [
{
"from": "user",
"value": "Picture 1: <img>images/journey/medium/journey_0221_3ea731.png</img>\nAnalyze this diagram and output the equivalent Mermaid code."
},
{
"from": "assistant",
"value": "journey\n title Food Delivery: Restaurant Browse to Meal Receipt\n section Browse Restaurants\n... |
kanban_0108 | [
{
"from": "user",
"value": "Picture 1: <img>images/kanban/easy/kanban_0108_20256f.png</img>\nGenerate Mermaid code that represents this diagram."
},
{
"from": "assistant",
"value": "kanban\n todo[Todo]\n requestAccountExport@{ ticket: CUST-101 }\n requestBillingHistory@{ ticket:... |
hard_0552 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/hard/hard_0552_14ce04.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "graph TD\n Start([Start TCP State Machine]) --> Init[Initialize: state = CLOSED, retry_count = 0, timeout = 0]\n I... |
sequenceDiagram_1280 | [
{
"from": "user",
"value": "Picture 1: <img>images/sequenceDiagram/hard/sequenceDiagram_1280_5160c9.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "sequenceDiagram\n participant User\n participant Browser\n participant ServiceA as \"Mail Serv... |
flowchart_0012 | [
{
"from": "user",
"value": "Picture 1: <img>images/flowchart/hard/flowchart_0012_0cc267.png</img>\nWrite the Mermaid syntax that would generate this diagram."
},
{
"from": "assistant",
"value": "flowchart BT\n A([Patient Discharged]) --> B[Finalize Discharge Paperwork]\n B --> C{{Follow-up... |
kanban_0247 | [
{
"from": "user",
"value": "Picture 1: <img>images/kanban/medium/kanban_0247_d79568.png</img>\nProvide the Mermaid code for this diagram."
},
{
"from": "assistant",
"value": "kanban\n backlog[Backlog]\n refine_payment_flow@{ ticket: PROJ-201, priority: 'High', assigned: 'Maya' }\n ... |
sankey_0153 | [
{
"from": "user",
"value": "Picture 1: <img>images/sankey/medium/sankey_0153_63251c.png</img>\nConvert this diagram to Mermaid code. Provide only the Mermaid syntax."
},
{
"from": "assistant",
"value": "sankey-beta\nNatural Gas,Residential Sector,180\nNatural Gas,Commercial Sector,120\nNatural G... |
gantt_0280 | [
{
"from": "user",
"value": "Picture 1: <img>images/gantt/hard/gantt_0280_7e9bad.png</img>\nTranscribe this diagram into Mermaid syntax."
},
{
"from": "assistant",
"value": "gantt\n title Quarterly OKR Execution with Milestones\n dateFormat YYYY-MM-DD\n\n section Planning & Alignment\n ... |
classDiagram_0819 | [
{
"from": "user",
"value": "Picture 1: <img>images/classDiagram/medium/classDiagram_0819_309d89.png</img>\nGenerate Mermaid code that represents this diagram."
},
{
"from": "assistant",
"value": "classDiagram\n class Player {\n +String playerId\n +String username\n -int e... |
journey_0088 | [
{
"from": "user",
"value": "Picture 1: <img>images/journey/hard/journey_0088_2ae5e1.png</img>\nWrite the Mermaid syntax that would generate this diagram."
},
{
"from": "assistant",
"value": "journey\n title Home Buyer: Search to Closing\n section Searching for a Home\n Browse listin... |
Image-to-Mermaid Dataset v3.0
Task: Given a rendered diagram image, generate the equivalent Mermaid source code that reproduces it.
This is a synthetic, multi-type extension of an earlier flowchart-only release (2,569 samples, tied to an accepted MAPR2026 IEEE paper on flowchart QA). v3.0 covers 26 Mermaid diagram types across 3 difficulty tiers each.
Statistics
| Split | Samples | Share |
|---|---|---|
| Train | 12,046 | 79.8% |
| Val | 1,475 | 9.8% |
| Test | 1,578 | 10.5% |
| Total | 15,099 | 100% |
Difficulty tiers (defined by structural element count β node/edge counts and a composite difficulty score β not by text length):
| Tier | Train | Val | Test | Total |
|---|---|---|---|---|
| Easy | 3,811 | 467 | 501 | 4,779 |
| Medium | 4,175 | 509 | 546 | 5,230 |
| Hard | 4,060 | 499 | 531 | 5,090 |
By diagram type (26 types, sorted by total samples):
| Diagram Type | Train | Val | Test | Total |
|---|---|---|---|---|
| flowchart | 2,406 | 300 | 303 | 3,009 |
| sequenceDiagram | 1,421 | 177 | 179 | 1,777 |
| classDiagram | 1,148 | 142 | 147 | 1,437 |
| stateDiagram | 747 | 92 | 97 | 936 |
| gitGraph | 625 | 78 | 80 | 783 |
| erDiagram | 587 | 72 | 77 | 736 |
| mindmap | 479 | 59 | 63 | 601 |
| architecture | 393 | 47 | 53 | 493 |
| C4Context | 393 | 47 | 52 | 492 |
| zenuml | 319 | 39 | 43 | 401 |
| radar | 241 | 29 | 33 | 303 |
| pie | 241 | 29 | 33 | 303 |
| ishikawa | 241 | 29 | 33 | 303 |
| venn | 241 | 29 | 33 | 303 |
| packet | 240 | 29 | 33 | 302 |
| treeview | 239 | 28 | 33 | 300 |
| treemap | 239 | 28 | 33 | 300 |
| gantt | 237 | 29 | 32 | 298 |
| timeline | 232 | 29 | 32 | 293 |
| requirementDiagram | 228 | 27 | 31 | 286 |
| quadrantChart | 201 | 24 | 28 | 253 |
| kanban | 200 | 24 | 27 | 251 |
| sankey | 199 | 24 | 27 | 250 |
| journey | 199 | 23 | 27 | 249 |
| block | 181 | 21 | 26 | 228 |
| xychart | 169 | 20 | 23 | 212 |
Structural ranges across the corpus: 0β72 nodes, 0β101 edges, composite difficulty score 0.09β8.0 (see stats.json for the exact per-split distributions).
Dataset Structure
v3.0/
βββ train.json # Training split (12,046 samples)
βββ val.json # Validation split (1,475 samples)
βββ test.json # Test split (1,578 samples)
βββ images/ # 15,099 PNGs, one subfolder per diagram type
β βββ flowchart/
β β βββ easy/
β β βββ medium/
β β βββ hard/
β βββ classDiagram/
β β βββ easy/ medium/ hard/
β βββ ... # 26 diagram-type folders total
βββ stats.json # Per-split / per-type / per-tier counts and structural stats
βββ DATASET_INFO.md # Generation-run metadata
βββ README.md # This file
βββ LICENSE
Format (Qwen-VL conversation JSON)
Each record is a single-turn image-grounded conversation. Real example pulled from train.json:
{
"id": "classDiagram_0933",
"conversations": [
{
"from": "user",
"value": "Picture 1: <img>images/classDiagram/medium/classDiagram_0933_d96139.png</img>\nConvert this diagram to Mermaid code. Provide only the Mermaid syntax."
},
{
"from": "assistant",
"value": "classDiagram\n class RideParticipant {\n <<interface>>\n +String participantId\n +updateProfile() void\n }\n ...\n Driver ..|> RideParticipant\n ..."
}
]
}
The image path is always relative to the dataset root (images/{type}/{tier}/{file}.png). The instruction sentence is drawn from a small pool of paraphrase templates (e.g. "Convert this diagram to Mermaid code.", "Provide the Mermaid code for this diagram.", "Analyze this diagram and output the equivalent Mermaid code.") to reduce instruction overfitting; all templates are English.
Images are PNGs rendered directly by mermaid-cli and are not resized to a fixed resolution β dimensions vary per diagram (driven by node/edge count and layout), with black diagram content on a white background.
Generation & Validation Methodology
Samples were generated via Batch API across three LLM providers β Anthropic Claude, OpenAI GPT, and Google Gemini β routed to different diagram-type/difficulty cells so no single provider dominates any one cell. Every candidate was rendered with mermaid-cli (mmdc) and had to pass a render-success gate plus a "ghost render" check (mmdc can exit 0 while silently emitting a fixed-size placeholder image instead of the real diagram). Surviving samples then went through four-layer deduplication: exact match (SHA256 on normalized Mermaid code), near-duplicate (MinHash-LSH, Jaccard β₯ 0.7), semantic (SemDeDup, cosine similarity β₯ 0.9), and structural (Weisfeiler-Lehman graph-hash isomorphism for graph-shaped diagram types).
Renderer pin (reproducibility contract): all images in this dataset were rendered with mermaid-cli (mmdc) v11.15.0. This version is part of the dataset's definition β re-rendering the same Mermaid code with a different mmdc version can produce visually different output, so any downstream evaluation that compares against these images should pin the same renderer version.
Known data quality note
An image-integrity spot check performed while preparing this card found 718/15,099 images (4.76%) were a byte-identical 512Γ109px placeholder ("ghost render") instead of the real diagram, concentrated in treemap (300/300) and architecture (347/493), with smaller leakage into gitGraph, treeview, and radar. Root cause was a handful of distinct Mermaid syntax patterns this project's pinned mmdc 11.15.0 silently fails to render (e.g. id["Label": value] leaf syntax in treemap-beta, block-style group ... end declarations in architecture-beta) plus a few genuine content bugs in the generated code (a tag: statement not attached to a commit, a spelled-out number where radar-beta expects a digit, a leaf label colliding with the title keyword in treeview-beta). All but 15 samples (0.10% of the dataset) were repaired by rewriting the affected Mermaid source to an equivalent, renderer-compatible form and re-rendering with the same pinned mmdc version β both the code (assistant turn) and image were updated together so they stay consistent. The 15 remaining known-broken images are: treemap (6), gitGraph (6), architecture (1), radar (1), treeview (1); each needs individual inspection rather than a general fix.
Usage
from datasets import load_dataset
ds = load_dataset("<namespace>/<repo_name>")
sample = ds["train"][0]
# sample["conversations"][0]["value"] -> instruction with image tag
# sample["conversations"][1]["value"] -> ground-truth Mermaid code
Note: this repo stores raw JSON + an images/ folder rather than a datasets-native schema (e.g. Parquet with embedded image bytes), matching the Qwen-VL fine-tuning format it was built for. load_dataset with the default loader may not parse the conversation/image-path structure automatically β treat train.json/val.json/test.json plus images/ as the source of truth and load them directly with json.load(...) if you need the raw records.
Intended Uses
- Vision-language model fine-tuning for diagram understanding (image β structured code)
- Diagram-to-code / OCR-style benchmarks across a broad set of Mermaid diagram types
- Multimodal structural-reasoning evaluation
License
MIT β see LICENSE. This dataset extends a previously released flowchart-only dataset (also MIT-licensed) associated with an accepted MAPR2026 IEEE paper.
- Downloads last month
- 93