|
|
@ -1,12 +1,13 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* @Author: your name
|
|
|
|
* @Author: your name
|
|
|
|
* @Date: 2021-10-12 10:11:24
|
|
|
|
* @Date: 2021-10-12 10:11:24
|
|
|
|
* @LastEditTime: 2021-11-01 14:25:41
|
|
|
|
* @LastEditTime: 2021-11-12 17:36:34
|
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
|
* @Description: In User Settings Edit
|
|
|
|
* @Description: In User Settings Edit
|
|
|
|
* @FilePath: /data-show/src/views/BrandInsight/titsopo/opt.js
|
|
|
|
* @FilePath: /data-show/src/views/BrandInsight/titsopo/opt.js
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
import * as echarts from "echarts";
|
|
|
|
import * as echarts from "echarts";
|
|
|
|
|
|
|
|
import { bigNumberTransform } from "@/utils/gol/dataTool"
|
|
|
|
// import { bigNumberTransform } from "@/utils/gol/dataTool"
|
|
|
|
// import { bigNumberTransform } from "@/utils/gol/dataTool"
|
|
|
|
let colors = ['#546fc5', '#91cb74', '#f9c857', '#ed6565', '#72bfde', '#3aa272', '#fb8351'];
|
|
|
|
let colors = ['#546fc5', '#91cb74', '#f9c857', '#ed6565', '#72bfde', '#3aa272', '#fb8351'];
|
|
|
|
function createData(ds = []) {
|
|
|
|
function createData(ds = []) {
|
|
|
@ -70,10 +71,13 @@ export default function createOpt(dx=[], ds=[]) {
|
|
|
|
legend: {
|
|
|
|
legend: {
|
|
|
|
icon: 'roundRect',
|
|
|
|
icon: 'roundRect',
|
|
|
|
textStyle: { //图例文字的样式
|
|
|
|
textStyle: { //图例文字的样式
|
|
|
|
color: '#fff'
|
|
|
|
color: '#fff',
|
|
|
|
|
|
|
|
fontSize: 10
|
|
|
|
},
|
|
|
|
},
|
|
|
|
y: 12,
|
|
|
|
y: 12,
|
|
|
|
x: 16
|
|
|
|
x: 16,
|
|
|
|
|
|
|
|
itemWidth: 12,
|
|
|
|
|
|
|
|
itemHeight: 12
|
|
|
|
},
|
|
|
|
},
|
|
|
|
xAxis: {
|
|
|
|
xAxis: {
|
|
|
|
type: 'category',
|
|
|
|
type: 'category',
|
|
|
@ -103,6 +107,12 @@ export default function createOpt(dx=[], ds=[]) {
|
|
|
|
color: "#fff",
|
|
|
|
color: "#fff",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
axisLabel: {
|
|
|
|
|
|
|
|
formatter: (value) => {
|
|
|
|
|
|
|
|
let str = bigNumberTransform(value);
|
|
|
|
|
|
|
|
return str;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
splitLine: {
|
|
|
|
splitLine: {
|
|
|
|
lineStyle: {
|
|
|
|
lineStyle: {
|
|
|
|
type: "dashed", // y轴分割线类型
|
|
|
|
type: "dashed", // y轴分割线类型
|
|
|
|