Mermaid line chart online editor
Show change over time or across ordered values with a line. Create the diagram in Mermaid Studio, preview it instantly, and export it when it is ready to share.
WHAT IT IS FOR
Make the important relationships clear
Make change over time visible with a line chart for trends, measurements, and ordered values.
- Show product growth
- Track service metrics
- Explain changes across a timeline
MERMAID EXAMPLE
Start with a working example
Copy the structure, replace the labels with your own domain, and continue in the full editor.
xychart-beta
title "Monthly active users"
x-axis [1Month, 2Month, 3Month, 4Month]
y-axis "User" 0 --> 100
line [20, 38, 52, 78]HOW TO START
Create your diagram in four steps
- 1Put ordered values on the x-axis.
- 2Use a consistent scale and unit.
- 3Add points in the correct sequence.
- 4Describe the important changes and turning points.
WRITING TIPS
Keep the diagram useful
Use ordered x-axis values.
Call out important changes in the surrounding text.
FAQ
Frequently asked questions
What is a line chart used for?+
Line charts are useful for showing how a value changes across time or another naturally ordered sequence.
Can Mermaid line charts show multiple series?+
The XY chart syntax can represent chart values in a compact, code-based format for comparison and trend documentation.
TEMPLATES
Start from a related template
RELATED DIAGRAMS
Explore another Mermaid diagram
Mermaid flowchart
Visualize processes, decisions, and system flows with connected nodes.
Read the guideMermaid sequence diagram
Map requests, responses, and asynchronous events between services.
Read the guideMermaid class diagram
Design domain objects, properties, methods, inheritance, and relationships.
Read the guideMermaid ER diagram
Document database entities, fields, relationships, and cardinality.
Read the guideMermaid state diagram
Show how an object or workflow changes state in response to events.
Read the guideMermaid mindmap
Organize ideas and subtopics hierarchically around a central theme.
Read the guideReady to make a Line Chart?
Open the editor with a working example and adapt it to your project.
Start in Mermaid Studio