File tree Expand file tree Collapse file tree 6 files changed +30
-6
lines changed Expand file tree Collapse file tree 6 files changed +30
-6
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,15 @@ import { mergeOptions } from '../helpers/options'
5
5
export default Vue . extend ( {
6
6
template : `
7
7
<div>
8
- <canvas id="bar-chart " width="{{width}}" height="{{height}}" v-el:canvas></canvas>
8
+ <canvas id="{{chartId}} " width="{{width}}" height="{{height}}" v-el:canvas></canvas>
9
9
</div>
10
10
` ,
11
11
12
12
props : {
13
+ chartId : {
14
+ default : 'bar-chart' ,
15
+ type : String
16
+ } ,
13
17
width : {
14
18
default : 400 ,
15
19
type : Number
Original file line number Diff line number Diff line change @@ -5,11 +5,15 @@ import { mergeOptions } from '../helpers/options'
5
5
export default Vue . extend ( {
6
6
template : `
7
7
<div>
8
- <canvas id="doughnut-chart " width={{width}} height={{height}} v-el:canvas></canvas>
8
+ <canvas id="{{chartId}} " width={{width}} height={{height}} v-el:canvas></canvas>
9
9
</div>
10
10
` ,
11
11
12
12
props : {
13
+ chartId : {
14
+ default : 'doughnut-chart' ,
15
+ type : String
16
+ } ,
13
17
width : {
14
18
default : 400 ,
15
19
type : Number
Original file line number Diff line number Diff line change @@ -5,11 +5,15 @@ import { mergeOptions } from '../helpers/options'
5
5
export default Vue . extend ( {
6
6
template : `
7
7
<div>
8
- <canvas id="line-chart " width={{width}} height={{height}} v-el:canvas></canvas>
8
+ <canvas id="{{chartId}} " width={{width}} height={{height}} v-el:canvas></canvas>
9
9
</div>
10
10
` ,
11
11
12
12
props : {
13
+ chartId : {
14
+ default : 'line-chart' ,
15
+ type : String
16
+ } ,
13
17
width : {
14
18
default : 400 ,
15
19
type : Number
Original file line number Diff line number Diff line change @@ -5,11 +5,15 @@ import { mergeOptions } from '../helpers/options'
5
5
export default Vue . extend ( {
6
6
template : `
7
7
<div>
8
- <canvas id="pie-chart " width={{width}} height={{height}} v-el:canvas></canvas>
8
+ <canvas id="{{chartId}} " width={{width}} height={{height}} v-el:canvas></canvas>
9
9
</div>
10
10
` ,
11
11
12
12
props : {
13
+ chartId : {
14
+ default : 'pie-chart' ,
15
+ type : String
16
+ } ,
13
17
width : {
14
18
default : 400 ,
15
19
type : Number
Original file line number Diff line number Diff line change @@ -5,11 +5,15 @@ import { mergeOptions } from '../helpers/options'
5
5
export default Vue . extend ( {
6
6
template : `
7
7
<div>
8
- <canvas id="polar-chart " width={{width}} height={{height}} v-el:canvas></canvas>
8
+ <canvas id="{{chartId}} " width={{width}} height={{height}} v-el:canvas></canvas>
9
9
</div>
10
10
` ,
11
11
12
12
props : {
13
+ chartId : {
14
+ default : 'polar-chart' ,
15
+ type : String
16
+ } ,
13
17
width : {
14
18
default : 400 ,
15
19
type : Number
Original file line number Diff line number Diff line change @@ -5,11 +5,15 @@ import { mergeOptions } from '../helpers/options'
5
5
export default Vue . extend ( {
6
6
template : `
7
7
<div>
8
- <canvas id="radar-chart " width={{width}} height={{height}} v-el:canvas></canvas>
8
+ <canvas id="{{chartId}} " width={{width}} height={{height}} v-el:canvas></canvas>
9
9
</div>
10
10
` ,
11
11
12
12
props : {
13
+ chartId : {
14
+ default : 'radar-chart' ,
15
+ type : String
16
+ } ,
13
17
width : {
14
18
default : 400 ,
15
19
type : Number
You can’t perform that action at this time.
0 commit comments