Create beautiful charts with a simple, but powerful and flexible JavaScript Chart.js plugin. Please read the official documentation for a full list of options.
A line chart is a way of plotting data points on a line. Often, it is used to show trend data, or the comparison of two data sets.
A bar chart provides a way of showing data values represented as vertical bars. It is sometimes used to show trend data, and the comparison of multiple data sets side by side.
Excellent at showing the relational proportions between data.
A simple little line chart with disabled interactions.
Easily toggle hidden datasets with a simple interface based on the data
attributes.
Name | Type | Default | Description |
---|---|---|---|
data-toggle
|
string | chart | Activates the toggle functionality. |
data-target
|
string | - | The selector of a chart the new set of data will be applied to. |
data-trigger
|
string | - | How datasets are triggered. Should be a valid JavaScript event. |
data-action
|
string | - |
Use toggle to replace an active dataset, or add to add a new one.
|
data-dataset
|
number | - |
The order of the dataset in the datasets array to toggle.
|
Please refer to src/js/user.js
for more examples.