lily.zhang 4 years ago
parent 43f612cac3
commit cce76c8aed

@ -1,7 +1,7 @@
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-10-09 11:01:19 * @Date: 2021-10-09 11:01:19
* @LastEditTime: 2021-10-15 15:45:33 * @LastEditTime: 2021-10-15 15:51:52
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: /data-show/src/views/Index/spreadTheSound/opt.js * @FilePath: /data-show/src/views/Index/spreadTheSound/opt.js
@ -9,10 +9,10 @@
export default function createOpt() { export default function createOpt() {
return { return {
grid: { grid: {
left: '3%', left: 16,
right: '6%', right: 16,
bottom: '3%', bottom: 16,
top: '22%', top: 56,
containLabel: true containLabel: true
}, },
tooltip: { tooltip: {
@ -43,7 +43,7 @@ export default function createOpt() {
color: "#fff", color: "#fff",
}, },
}, },
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'] data: ['汽车之家', '懂车帝', '腾讯新闻', '凤凰网', '新浪微博']
}, },
yAxis: { yAxis: {
type: 'value', type: 'value',
@ -62,7 +62,7 @@ export default function createOpt() {
}, },
series: [ series: [
{ {
name: 'Direct', name: '奥迪',
type: 'bar', type: 'bar',
stack: 'total', stack: 'total',
barWidth: 24, barWidth: 24,
@ -72,7 +72,7 @@ export default function createOpt() {
data: [320, 302, 301, 334, 390] data: [320, 302, 301, 334, 390]
}, },
{ {
name: 'Mail Ad', name: '宝马',
type: 'bar', type: 'bar',
stack: 'total', stack: 'total',
barWidth: 24, barWidth: 24,
@ -82,7 +82,7 @@ export default function createOpt() {
data: [120, 132, 101, 134, 90] data: [120, 132, 101, 134, 90]
}, },
{ {
name: 'Affiliate Ad', name: '奔驰',
type: 'bar', type: 'bar',
stack: 'total', stack: 'total',
barWidth: 24, barWidth: 24,
@ -92,7 +92,7 @@ export default function createOpt() {
data: [220, 182, 191, 234, 290] data: [220, 182, 191, 234, 290]
}, },
{ {
name: 'Video Ad', name: '吉利',
type: 'bar', type: 'bar',
stack: 'total', stack: 'total',
barWidth: 24, barWidth: 24,
@ -102,7 +102,7 @@ export default function createOpt() {
data: [150, 212, 201, 154, 190] data: [150, 212, 201, 154, 190]
}, },
{ {
name: 'Search Engine', name: '大众',
type: 'bar', type: 'bar',
stack: 'total', stack: 'total',
barWidth: 24, barWidth: 24,
@ -110,7 +110,17 @@ export default function createOpt() {
focus: 'series' focus: 'series'
}, },
data: [820, 832, 901, 934, 1290] data: [820, 832, 901, 934, 1290]
} },
{
name: '别克',
type: 'bar',
stack: 'total',
barWidth: 24,
emphasis: {
focus: 'series'
},
data: [820, 832, 901, 934, 1290]
}
] ]
} }

Loading…
Cancel
Save