Pro Pack
Docs HomeProduct SiteSupport
  • Introduction
  • Installation
  • Chart.js
    • Configuration
    • Data Binding
    • Data Labels
  • Dataset Filter Labels
    • Installation
    • Configuration
    • Data Binding
  • DataTables
    • Configuration
    • Data Binding
    • Events
    • Methods
  • Date Range Picker
    • Configuration
    • Data Binding
    • Methods
  • iCheck
    • List
      • Configuration
      • Data Binding
      • Events
    • Filter
      • Configuration
      • Data Binding
  • Select2
    • Configuration
    • Data Binding
    • Events
    • Methods
  • Sparklines
    • Installation
    • Configuration
    • Data Binding
  • Toastr
    • Configuration
  • Web Frameworks
Powered by GitBook
On this page
  • Installation
  • Class
  • Render

Was this helpful?

Chart.js

PreviousInstallationNextConfiguration

Last updated 2 years ago

Was this helpful?

is simple yet flexible JavaScript charting for designers & developers. Chart.js supports bar, line, area, pie, and other .

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.

Installation

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.

npm install @wirebootstrap/wire-chartjs

Class

To create a new instance of the Chart.js for WireBootstrap component, use the wire.chartjs class.

const myChart = new wire.chartjs();

Render

Render the component using an HTML div element.

<div id="chart"></div>
<script>
    new wire.chartjs().render("#chart", {});
</script>
<wire-chartjs wr-config=""></wire-chartjs>
<WireComponent component="wire.chartjs" config={}>
    <div></div>
</WireComponent>
<div wire-component="wire.chartjs" v-wire-config=""></div>
<div wire-component="wire.chartjs" [config]=""></div>

Chart.js for WireBootstrap will load Chart.min.js from a if it's not found on the page.

Chart.js for WireBootstrap extends the class. As such, it inherits all the base functionality of that class.

CDN
wire.ui.component
Chart.js
chart types
Chart.js for WireBootstrap