prod
lily.zhang 3 years ago
parent 7ae85e4987
commit ebca3c9ff6

@ -170,7 +170,7 @@ export default {
display: flex;
height: 100%;
width: 430px;
justify-content: flex-start;
justify-content: flex-end;
margin-right: 16px;
margin-top: 18px;
.s1 {

@ -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;
}
},

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-09 11:01:19
* @LastEditTime: 2021-10-29 10:52:42
* @LastEditTime: 2021-10-29 11:12:46
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/views/Index/spreadTheSound/opt.js
@ -31,8 +31,7 @@ function createData(ds = []) {
normal:{
//柱体的颜色
//右1000表示从正右开始向左渐变
color: function(params){
console.log(params);
color: function(params){
return new echarts.graphic.LinearGradient(0,0,0,1,[
{
offset:0,

Loading…
Cancel
Save