Skip to content

Typemill Plugin for Interactive Vega-Lite Charts

License

Notifications You must be signed in to change notification settings

epywiki/vegalite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vega-Lite Typemill Plugin

The Vega-Lite Typemill plugin brings powerful data visualization capabilities to Typemill CMS. It is heavily inspired by the Mermaid plugin, offering a simple way to embed Vega-Lite charts directly in your content.

Features

  • Embed Vega-Lite charts using JSON syntax.
  • Supports bar charts, line charts, scatter plots, and more.
  • Seamless integration with Typemill CMS content.

Usage

You can embed a Vega-Lite chart using the following syntax:

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "data": {
    "values": [
      {"a": "A", "b": 28},
      {"a": "B", "b": 55},
      {"a": "C", "b": 43}
    ]
  },
  "mark": "bar",
  "encoding": {
    "x": {"field": "a", "type": "ordinal"},
    "y": {"field": "b", "type": "quantitative"}
  }
}

Installation

  • Download the plugin files.
  • Upload them to your Typemill plugins directory.
  • Activate the plugin via the Typemill admin panel.

Documentation

  • For more details on Vega-Lite chart specifications, visit the Vega-Lite Documentation.
  • Enhance your Typemill content with interactive and customizable data visualizations effortlessly!

Contribution

This plugin is welcome to improvements and feel free to report any bugs.

About

Typemill Plugin for Interactive Vega-Lite Charts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages