Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 905 Bytes

File metadata and controls

46 lines (40 loc) · 905 Bytes

Chart.js Markdown Preview

Adds Chart.js support to VS Code's builtin markdown preview

Usage

Create diagrams in markdown using chart code blocks:

```chart
{
  "type": "pie",
  "data": {
    "labels": [
      "Red",
      "Blue",
      "Yellow"
    ],
    "datasets": [
      {
        "data": [
          300,
          50,
          100
        ],
        "backgroundColor": [
          "#FF6384",
          "#36A2EB",
          "#FFCE56"
        ],
        "hoverBackgroundColor": [
          "#FF6384",
          "#36A2EB",
          "#FFCE56"
        ]
      }
    ]
  },
  "options": {}
}
```

This Extensions is a fork of Geek Learning's Graphviz Markdown Preview.