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
  • Properties
  • Chartjs

Was this helpful?

  1. Chart.js

Configuration

Use the following configuration options to bind the Chart.js for WireBootstrap component.

Properties

Name

Description

chartjs

datamap

datalabels

type

Sets the chart type. Valid values are: area , bar , barLine , bubble , doughnut , pie ,line , stackedArea , stackedBar , stackedHorizontalBar

Chartjs

The following creates a bar chart and turns both the legend and title on for the chart.

const chart = new wire.chartjs().render("#chart", {
    ...
    type: "bar",
    chartjs: {    
        title: {display: true, fontSize: 12},
        legend: {display: true, position: "bottom"},
    }
});

PreviousChart.jsNextData Binding

Last updated 3 years ago

Was this helpful?

A pass-through to the . See for an example.

Used to bind data to the component. See for details.

Used to configure the for Chart.js. See for details.

Data Binding
datalabels plugin
Data Labels
native configuration for Chart.js
Chartjs