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
  • Class
  • Render

Was this helpful?

  1. Sparklines

Installation

PreviousSparklinesNextConfiguration

Last updated 2 years ago

Was this helpful?

The Sparklines for WireBootstrap library is located in wire-sparklines.js. This and other other related files can be installed from the NPM package registry at@wirebootstrap/wire-sparklines.

npm install @wirebootstrap/wire-sparkline

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

Class

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

To create a new instance of the Sparklines for WireBootstrap component, use the wire.sparkline class.

const myChart = new wire.sparkline();

Render

Render the component using an HTML div element.

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