Chart
<time datetime="2023-08-30 23:48:06 -0500 CDT">Updated: August 30 2023</time>
blowfish
shortcodes
chart
blowfish shortcodes - This article is part of a series.
Part 6: This Article
🐡 Shortcodes
badge
outputs a styled badge component thematically aligned to tags
chart
uses the Chart.js library to embed charts into articles using simple structured data. It supports a number of
different chart styles and everything can be configured from within the shortcode. Simply provide the chart parameters between the shortcode tags and Chart.js will do the rest.
Refer to the official Chart.js docs for details on syntax and supported chart types.
Example:
{{< chart >}}
type: 'bar',
data: {
labels: ['Tomato', 'Blueberry', 'Banana', 'Lime', 'Orange'],
datasets: [{
label: '# of votes',
data: [12, 19, 3, 5, 3],
}]
}
{{< /chart >}}
- You can see some additional Chart.js examples on the charts samples page:
-
Charts<time datetime="2023-08-19 21:44:35 -0500 CDT">Updated: August 19 2023</time><span class="px-2 text-primary-500">·</span><span>81 words</span><span class="px-2 text-primary-500">·</span><span title="Reading time">1 min</span>chart sample graph shortcodes
blowfish shortcodes - This article is part of a series.
Part 6: This Article