Skip to main content
  1. Articles/

Charts

··1 min Draft
Table of Contents

Congo includes support for Chart.js using the chart shortcode. Simply wrap the chart markup within the shortcode. Congo automatically themes charts to match the configured colorScheme parameter, however the colours can be customised using normal Chart.js syntax.

The examples below are a small selection taken from the official Chart.js docs. You can also view the page source on GitHub to see the markup.

Bar chart #

Line chart #

Doughnut chart #

Zdenek Malik
Author
Zdenek Malik
This is an example author bio, and although there’s a stock photo of a dog here, this article was actually created by a human. 🐶