UNPKG
vue-chartjs-typescript
Version:
latest (3.3.3)
3.3.3
3.3.2
Fork from vue-chartjs with typescript definitions
vue-chartjs.org
apertureless/vue-chartjs
vue-chartjs-typescript
/
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
) } }