|
|
|
@ -1,11 +1,12 @@
|
|
|
|
|
/*
|
|
|
|
|
* @Author: your name
|
|
|
|
|
* @Date: 2021-10-12 10:11:24
|
|
|
|
|
* @LastEditTime: 2021-10-26 13:51:34
|
|
|
|
|
* @LastEditTime: 2021-10-29 11:10:30
|
|
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
|
|
* @Description: In User Settings Edit
|
|
|
|
|
* @FilePath: /data-show/src/views/BrandInsight/titsopo/opt.js
|
|
|
|
|
*/
|
|
|
|
|
// import * as echarts from "echarts";
|
|
|
|
|
function createData(ds = []) {
|
|
|
|
|
let arr = [];
|
|
|
|
|
for (let i = 0; i < ds.length; i++) {
|
|
|
|
@ -21,7 +22,10 @@ function createData(ds = []) {
|
|
|
|
|
type: 'line',
|
|
|
|
|
symbol: 'none',
|
|
|
|
|
areaStyle: {
|
|
|
|
|
opacity: 0.4
|
|
|
|
|
normal: {
|
|
|
|
|
opacity: 0.2
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
emphasis: {
|
|
|
|
|
focus: 'series'
|
|
|
|
@ -62,7 +66,10 @@ export default function createOpt(dx = [], ds = []) {
|
|
|
|
|
color: '#fff'
|
|
|
|
|
},
|
|
|
|
|
y: 12,
|
|
|
|
|
x: 16
|
|
|
|
|
x: 16,
|
|
|
|
|
itemWidth: 12,
|
|
|
|
|
itemHeight: 12
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
xAxis: {
|
|
|
|
|
type: 'category',
|
|
|
|
@ -76,9 +83,9 @@ export default function createOpt(dx = [], ds = []) {
|
|
|
|
|
color: "#fff",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
axisLabel : {
|
|
|
|
|
axisLabel: {
|
|
|
|
|
formatter: (value) => {
|
|
|
|
|
let str = value.substring(10,16)
|
|
|
|
|
let str = value.substring(10, 16)
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|