Skip to content

Commit ce278b7

Browse files
'新增图表样式'
1 parent d2d00fa commit ce278b7

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

public/template/column.xlsx

13.7 KB
Binary file not shown.

src/App.vue

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,18 @@ export default {
2424
2525
let xlsxChart = new XLSXChart();
2626
let opts = {
27-
chart: "bar",
27+
chart: "column",
2828
titles: ["Price"],
29-
fields: ["Apple", "Blackberry", "Strawberry", "Cowberry", "jasonchen"],
29+
fields: ["Apple", "Blackberry", "Strawberry", "Cowberry", "jasonchen", 'lemon', 'orange'],
3030
data: {
3131
Price: {
32-
Apple: 10,
33-
Blackberry: 5,
34-
Strawberry: 15,
35-
Cowberry: 20,
36-
jasonchen: 2000
32+
Apple: 100,
33+
Blackberry: 250,
34+
Strawberry: 150,
35+
Cowberry: 120,
36+
jasonchen: 240,
37+
lemon: 130,
38+
orange: 90
3739
},
3840
},
3941
chartTitle: "Area chart",

0 commit comments

Comments
 (0)