MDV transforms Markdown into a powerful tool for crafting documents, dashboards, and slides with embedded data and visualizations. Offering HTML and PDF export, along with a live preview in VS Code, this superset includes features like YAML front-matter and fenced blocks for charts and styled content.
MDV (Markdown Data & Visualization) is a powerful Markdown superset designed for creating documents, dashboards, and slides with integrated data and visual content. It enhances standard Markdown with a set of features that allow for the easy incorporation of charts, KPI cards, tables, and styled regions without the need for complex coding or expressions.
```chart type=bar x=region y=sales```
::: containers for creating styled sections within your documents, such as callouts or columns.::: toc functionality.Here is how a typical MDV file looks:
---
title: Q1 Report
theme: report
data:
sales: ./data/sales.csv
---
::: toc
:::
# Q1 Results
```stat
label, value, delta
Total revenue, $2.06M, +14%
New customers, 1238, +8%
```
```chart type=line data=sales x=month y=revenue series=region yFormat=currency title="Monthly revenue"
```
This snippet showcases a flash report featuring a table of statistics and a line chart visualizing monthly revenue, both rendered seamlessly in a self-contained HTML format or as a PDF.
MDV operates efficiently within Visual Studio Code, allowing users to preview content live side-by-side as they write.
Explore the examples/ directory for sample files that demonstrate all MDV features, along with their rendered HTML output available in examples/out/.
MDV version 1 is currently in pre-release, built to function with Node.js version 20 or above. For those interested in the project's design philosophy and future roadmap, further information can be found in the MDV format design document.
MDV offers a streamlined approach to building interactive, data-driven documents, making it a valuable tool for anyone looking to enhance their content with visual data representation.
No comments yet.
Sign in to be the first to comment.