UNPKG
@aram-zahedi/vue-chartjs
Version:
latest (3.5.1)
3.5.1
Vue.js wrapper for chart.js for creating beautiful charts.
vue-chartjs.org
apertureless/vue-chartjs
@aram-zahedi/vue-chartjs
/
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
) } }