|
|
|
@ -208,7 +208,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
show: true,
|
|
|
|
|
},
|
|
|
|
|
data: ['0时', '2时', '4时', '6时', '8时', '10时', '12时', '14时'],
|
|
|
|
|
data: ['人A', '人B', '人C', '人D', '人E', '人F', '人G', '人H'],
|
|
|
|
|
type: 'category',
|
|
|
|
|
},
|
|
|
|
|
yAxis: {
|
|
|
|
@ -247,16 +247,16 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
series: [
|
|
|
|
|
{
|
|
|
|
|
data: [38, 60, 40, 55, 42, 39, 45, 40],
|
|
|
|
|
data: [60, 55, 45, 42, 40, 40, 39, 38],
|
|
|
|
|
type: 'pictorialBar',
|
|
|
|
|
barMaxWidth: 'auto',
|
|
|
|
|
barWidth: 1.5 * vw,
|
|
|
|
|
symbol: 'rect',
|
|
|
|
|
itemStyle: {
|
|
|
|
|
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'
|
|
|
|
|
} 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'
|
|
|
|
|
|
|
|
|
|
} 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',
|
|
|
|
|
barWidth: 1.5 * vw,
|
|
|
|
|
symbolPosition: 'end',
|
|
|
|
|
symbol: 'diamond',
|
|
|
|
|
itemStyle: {
|
|
|
|
|
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'
|
|
|
|
|
} 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'
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
@ -300,16 +300,16 @@ export default {
|
|
|
|
|
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',
|
|
|
|
|
barWidth: 1.5 * vw,
|
|
|
|
|
symbolPosition: 'end',
|
|
|
|
|
symbol: 'diamond',
|
|
|
|
|
itemStyle: {
|
|
|
|
|
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'
|
|
|
|
|
} 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'
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
@ -329,7 +329,7 @@ export default {
|
|
|
|
|
// },
|
|
|
|
|
// symbolSize: [40, 40],
|
|
|
|
|
// 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 {
|
|
|
|
|
// value: val,
|
|
|
|
|
// symbolPosition: 'end',
|
|
|
|
|