UNPKG
vue-chartjs-reactive
Version:
latest (3.4.27)
3.4.27
3.4.26
3.4.25
3.4.24
3.4.23
3.4.22
3.4.21
3.4.20
3.4.19
3.4.18
3.4.17
3.4.16
3.4.15
3.4.14
3.4.13
3.4.12
3.4.11
3.4.10
3.4.9
3.4.8
3.4.7
3.4.6
3.4.5
3.4.4
3.4.3
3.4.2
3.4.1
3.4.0
3.3.2
Vue.js wrapper for chart.js for creating beautiful charts.
vue-chartjs.org
w3cj/vue-chartjs-reactive
vue-chartjs-reactive
/
src
/
examples
/
ReactivePropExample.js
18 lines
(15 loc)
•
311 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import
{
Bar
}
from
'../BaseCharts'
import
{ reactiveProp }
from
'../mixins'
export
default
{
extends
:
Bar
,
mixins
: [reactiveProp],
data
:
() =>
({
options
: {
responsive
:
true
,
maintainAspectRatio
:
false
} }),
mounted
() {
this
.
renderChart
(
this
.
chartData
,
this
.
options
) } }