Vega Lite WordPress Plugin
A WordPress plugin providing an in-editor data visualization creation interface driven by the Vega visualization grammar
by Human Made and the Wikimedia Foundation · github.com/wikimedia/vegalite-wordpress-plugin
★ 4stars
2forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/wikimedia/vegalite-wordpress-plugin/archive/refs/heads/main.zipFrom the readme
Vega Lite WordPress Plugin
Developed by Human Made and the Wikimedia Foundation.
Plugin release archive
This plugin provides a flexible data visualization block using the Vega-Lite declarative JSON visualization grammar.
- Getting Started with Vega-Lite
- Documentation for Vega-Lite
Frontend Events
The plugin dispatches DOM events on the .visualization-block element so external code can respond to chart interactions without polling or coupling to the Vega View API.
vegalite:ready
Fired once after a chart finishes rendering.
vegalite:click
Fired when a user clicks on a chart element (e.g. a pie/arc segment). The datum object contains the data fields defined in the Vega-Lite spec for the clicked mark.
Both events bubble, so you can listen on document or scope the listener to a specific container.
Connecting a chart to an accordion via className:
Add a className field to each data record in your Vega-Lite spec, then apply the same class to the matching accordion item in your markup. The listener below opens the accordion whose class matches the clicked segment:
Development
This project expects Node 24 or later and Composer 2. We recommend managing the installed version
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| v0.7.0 | Aug 5, 2026 |
| v0.6.0 | Jul 10, 2026 |
| v0.5.0 | May 1, 2025 |
| v0.4.0 | Apr 10, 2024 |
| v0.3.0 | Dec 5, 2023 |
| v0.2.4 | Nov 30, 2023 |
| v0.2.3 | Nov 8, 2023 |
| v0.2.2 | Mar 9, 2023 |
| v0.2.0 | Jan 24, 2023 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.