How to create a Bar chart in WordPress via shortcode
Add a bar chart in seconds with a single shortcode. Chartlet renders Chart.js on the front end with zero database overhead.
1. Install Chartlet
Install the Chartlet plugin from the WordPress repository or upload the plugin files. Activate it—no configuration required.
2. Add the shortcode
In the block editor or classic editor, add the following shortcode where you want the chart to appear:
[chartlet type="bar" labels="Jan,Feb,Mar,Apr,May" data="12,19,8,14,11" colors="#3366cc,#dc3912,#ff9900,#109618,#990099" title="Monthly Revenue" height="300" prefix="$" suffix=""] 3. Customize (optional)
You can set a title, colors, or other options via shortcode attributes. See the full docs for all options.