Add a responsive and accessible data chart block to posts and pages.
This WordPress plugin adds a responsive and accessible data chart block to the post editor. The chart feeds off of data from a publicly viewable Google sheet.
In the WordPress admin, install and enable the “Besan Block” plugin.
Enter your Google Sheets API key on the plugin’s settings page.
Edit any page or post and add the “Chart” editor block.
In the Inspector panel (on the right-hand side of the editor), enter the following information:
Optionally (but preferably), enter a title and caption for the chart inside the editor.
Save and view the page!
The block will calculate the number of unique values inside that column and create a chart based on that data.
“Besan” is the Vulcan word for “chart”. Live long and prosper.
So far, only bar charts (horizontal and vertical). More charts (including pie charts) are coming soon… or, well, eventually.