An open API service indexing awesome lists of open source software.

https://github.com/opensource-brainband/vizard

CSV-like Markdown extensions for rendering charts and lightweight data visualizations
https://github.com/opensource-brainband/vizard

chart csv d3 data-visualization dsl extension graph markdown markdown-it open-source readme table typescript visualization vscode-extension

Last synced: 6 months ago
JSON representation

CSV-like Markdown extensions for rendering charts and lightweight data visualizations

Awesome Lists containing this project

README

          


vizard logo

vizard


🪄 Open Source Markdown-based Data Visualization Tool



Homepage
License: MIT


## 📖 About

**vizard** is an open source tool that allows you to easily visualize charts and tables from CSV/DSL data within markdown documents.
Just enter your data in a code block and it will be automatically rendered as bar charts, line charts, tables, and more.

## ✨ Features

- **Automatic CSV/DSL Chart Rendering**
- **Live Preview**
- **Easy Extensibility**
- **Quick Start**

## 📁 Project Structure

```
vizard/
├── apps/
│ ├── md-renderer/ # Markdown-based renderer app
│ └── web/ # Web frontend app
├── packages/
│ └── src/
│ ├── render/ # Chart/table rendering functions
│ ├── parseCSV.ts # CSV parser
│ └── markdown.ts # Markdown utilities
└── README.md
```

- **apps/md-renderer/**: Markdown preview and chart rendering app
- **apps/web/**: Web frontend app
- **packages/src/render/**: Rendering functions for bar chart, line chart, table, etc.
- **packages/src/parseCSV.ts**: CSV code block parsing function
- **docs/**: Sample markdown and data

## 🚀 Getting Started

### 1. Installation

```bash
git clone https://github.com/opensource-Brainband/vizard.git
cd vizard
npm install
```

### 2. Run

#### For the web app:
```bash
cd apps/web
npm run dev
```

#### For the markdown renderer app:
```bash
cd apps/md-renderer
npm run dev
```

Open your browser and go to http://localhost:5173

## 📝 Chart Block Syntax

You can render charts and tables by writing a CSV code block in your markdown.
The first line (info string) can include options like `title` and `type`.

**Syntax:**


```csv title="Chart Title" type="bar"
Header1,Header2
value1,value2
...
```

**Options:**
- `title` (optional): The chart or table title.
- `type` (required): The visualization type.
- `bar` : Bar chart
- `line` : Line chart
- `table` : Table

## 🛠️ Usage

Simply enter a CSV code block in the markdown editor and the chart will be rendered automatically.

**CSV Chart Example:**


```csv title="Sales Data" type="bar"
# Only rendered as a chart in vizard, not on GitHub
Date,Sales
2021-01-01,100
2021-01-02,150
2021-01-03,120
```

## 🖼 Example

Image

## 🤝 Contributing

1. Fork this repository.
2. Create a new branch: `git checkout -b feature/your-feature`
3. Commit your changes: `git commit -m 'Add some feature'`
4. Push to the branch: `git push origin feature/your-feature`
5. Create a Pull Request.


Made with ❤️ by vizard contributors