VuePress EcosystemVuePress Ecosystem
  • Theme Guidelines
  • theme-default
  • Hope Theme
  • Plume Theme
  • Reco Theme
  • Feature Plugins
  • Markdown Plugins
  • Search Plugins
  • Blog Plugins
  • PWA Plugins
  • Analytics Plugins
  • SEO Plugins
  • Development Plugins
  • Tool Plugins
  • AI Plugins
  • @vuepress/helper
  • English
  • 简体中文
GitHub
  • Theme Guidelines
  • theme-default
  • Hope Theme
  • Plume Theme
  • Reco Theme
  • Feature Plugins
  • Markdown Plugins
  • Search Plugins
  • Blog Plugins
  • PWA Plugins
  • Analytics Plugins
  • SEO Plugins
  • Development Plugins
  • Tool Plugins
  • AI Plugins
  • @vuepress/helper
  • English
  • 简体中文
GitHub
  • append-date
  • markdown-chart
    • markdown-chart
    • Chart.js
    • ECharts
    • Flowchart
    • Markmap
    • Mermaid
    • PlantUML
  • markdown-container
  • markdown-ext
  • markdown-image
  • markdown-include
  • markdown-hint
  • markdown-math
  • markdown-preview
  • markdown-stylize
  • markdown-tab
  • links-check
  • prismjs
  • revealjs
    • revealjs
    • Slide Demo
    • Reveal.js Themes
  • shiki

markdown-chart

@vuepress/plugin-markdown-chart

Add powerful charts to your VuePress site.

This plugin provides 6 different chart libraries to help you insert charts into your Markdown files:

  • Chart.js: A lightweight, easy-to-use, highly customizable chart library.

    Chart.js is lighter compared to ECharts.

  • ECharts: A powerful, interactive charting and visualization library for browsers.

    ECharts is more powerful compared to Chart.js.

  • Flowchart: A simple Markdown extension to generate flowcharts and sequence diagrams.

    Lightweight, focusing only on flowcharts.

  • Markmap: Create mind maps from Markdown.

    The runtime is heavy, not recommended for production.

  • Mermaid: Generate diagrams and flowcharts from text in a similar manner as Markdown.

    Powerful collection of common charts.

  • PlantUML: UML diagrams powered by Java.

    No client-side runtime, extremely lightweight.

Installation

pnpm
pnpm add -D @vuepress/plugin-markdown-chart@next
yarn
yarn add -D @vuepress/plugin-markdown-chart@next
npm
npm i -D @vuepress/plugin-markdown-chart@next

Usage

import { markdownChartPlugin } from '@vuepress/plugin-markdown-chart'

export default {
  plugins: [
    markdownChartPlugin({
      // Enable Chart.js
      chartjs: true,
      // Enable ECharts
      echarts: true,
      // Enable Flowchart.js
      flowchart: true,
      // Enable Markmap
      markmap: true,
      // Enable Mermaid
      mermaid: true,
      // Enable PlantUML
      plantuml: true,
    }),
  ],
}

Available Charts

  • Chart.js
  • ECharts
  • Flowchart
  • Markmap
  • Mermaid
  • PlantUML

Options

chartjs

  • Type: boolean
  • Details: Whether to enable Chart.js support.

echarts

  • Type: boolean
  • Details: Whether to enable ECharts support.

flowchart

  • Type: boolean
  • Details: Whether to enable Flowchart support.

markmap

  • Type: boolean
  • Details: Whether to enable Markmap support.

mermaid

  • Type: boolean
  • Details: Whether to enable Mermaid support.

plantuml

  • Type: boolean | MarkdownItPlantumlOptions[]
  • Details: Whether to enable PlantUML support. Can accept configuration options for advanced usage.
Edit this page on GitHub
Last Updated: 6/7/25, 8:43 AM
Contributors: Mister-Hope
Prev
append-date
Next
markdown-container