Chart.js
Last updated
Last updated
Chart.js is simple yet flexible JavaScript charting for designers & developers. Chart.js supports bar, line, area, pie, and other chart types.
Chart.js for WireBootstrap brings Chart.js into the WireBootstrap framework providing a powerful way of displaying data visualizations in applications developed with Bootstrap themes.
The Chart.js for WireBootstrap library is located in wire-chart.js
. This and other other related files can be installed from the NPM package registry at@wirebootstrap/wire-chartjs
.
Chart.js for WireBootstrap will load Chart.min.js
from a CDN if it's not found on the page.
Chart.js for WireBootstrap extends the wire.ui.component class. As such, it inherits all the base functionality of that class.
To create a new instance of the Chart.js for WireBootstrap component, use the wire.chartjs
class.
Render the component using an HTML div
element.