XY: Line Chart

A single line series — the simplest line chart.

xy-line-chart.mmd
xychart-beta
    title "Revenue Growth"
    x-axis [2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025]
    line [320, 420, 540, 680, 820, 950, 1080, 1200]
Output
XY chart, Zombie Mermaid 2018 2019 2020 2021 2022 2023 2024 2025 400 500 600 700 800 900 1000 1100 1200 Revenue Growth

More XY chart examples