修改看板

master
夜笙歌 1 year ago
parent addd58e278
commit 11ae5f376e

@ -208,7 +208,7 @@ export default {
}, },
show: true, show: true,
}, },
data: ['0时', '2时', '4时', '6时', '8时', '10时', '12时', '14时'], data: ['人A', '人B', '人C', '人D', '人E', '人F', '人G', '人H'],
type: 'category', type: 'category',
}, },
yAxis: { yAxis: {
@ -247,16 +247,16 @@ export default {
}, },
series: [ series: [
{ {
data: [38, 60, 40, 55, 42, 39, 45, 40], data: [60, 55, 45, 42, 40, 40, 39, 38],
type: 'pictorialBar', type: 'pictorialBar',
barMaxWidth: 'auto', barMaxWidth: 'auto',
barWidth: 1.5 * vw, barWidth: 1.5 * vw,
symbol: 'rect', symbol: 'rect',
itemStyle: { itemStyle: {
color: function (val) { color: function (val) {
if ([38, 60, 40, 55, 42, 39, 45, 40].length - val.dataIndex === 1) { if ([60, 55, 45, 42, 40, 40, 39, 38].length - val.dataIndex === 1) {
return 'red' return 'red'
} else if ([38, 60, 40, 55, 42, 39, 45, 40].length - val.dataIndex === 2) { } else if ([60, 55, 45, 42, 40, 40, 39, 38].length - val.dataIndex === 2) {
return 'yellow' return 'yellow'
} else { } else {
@ -278,16 +278,16 @@ export default {
} }
}, },
{ {
data: [38, 60, 40, 55, 42, 39, 45, 40], data: [60, 55, 45, 42, 40, 40, 39, 38],
type: 'pictorialBar', type: 'pictorialBar',
barWidth: 1.5 * vw, barWidth: 1.5 * vw,
symbolPosition: 'end', symbolPosition: 'end',
symbol: 'diamond', symbol: 'diamond',
itemStyle: { itemStyle: {
color: function (val) { color: function (val) {
if ([38, 60, 40, 55, 42, 39, 45, 40].length - val.dataIndex === 1) { if ([60, 55, 45, 42, 40, 40, 39, 38].length - val.dataIndex === 1) {
return 'red' return 'red'
} else if ([38, 60, 40, 55, 42, 39, 45, 40].length - val.dataIndex === 2) { } else if ([60, 55, 45, 42, 40, 40, 39, 38].length - val.dataIndex === 2) {
return 'yellow' return 'yellow'
} else { } else {
@ -300,16 +300,16 @@ export default {
zlevel: 4, zlevel: 4,
}, },
{ {
data: [38, 60, 40, 55, 42, 39, 45, 40].map(val => 1), data: [60, 55, 45, 42, 40, 40, 39, 38].map(val => 1),
type: 'pictorialBar', type: 'pictorialBar',
barWidth: 1.5 * vw, barWidth: 1.5 * vw,
symbolPosition: 'end', symbolPosition: 'end',
symbol: 'diamond', symbol: 'diamond',
itemStyle: { itemStyle: {
color: function (val) { color: function (val) {
if ([38, 60, 40, 55, 42, 39, 45, 40].length - val.dataIndex === 1) { if ([60, 55, 45, 42, 40, 40, 39, 38].length - val.dataIndex === 1) {
return 'red' return 'red'
} else if ([38, 60, 40, 55, 42, 39, 45, 40].length - val.dataIndex === 2) { } else if ([60, 55, 45, 42, 40, 40, 39, 38].length - val.dataIndex === 2) {
return 'yellow' return 'yellow'
} else { } else {
@ -329,7 +329,7 @@ export default {
// }, // },
// symbolSize: [40, 40], // symbolSize: [40, 40],
// z: 10, // z: 10,
// data: [38, 60, 40, 55, 42, 39, 45, 40].map(val => { // data: [60, 55, 45, 42, 40, 40, 39, 38].map(val => {
// return { // return {
// value: val, // value: val,
// symbolPosition: 'end', // symbolPosition: 'end',

Loading…
Cancel
Save