|
|
@@ -247,6 +247,10 @@ export default {
|
|
|
name: '一级',
|
|
|
type: 'bar',
|
|
|
stack: 'total',
|
|
|
+ emphasis: {
|
|
|
+ focus: 'series',
|
|
|
+ blurScope: 'coordinateSystem'
|
|
|
+ },
|
|
|
barGap: barGap, /* 多个并排柱子设置柱子之间的间距*/
|
|
|
barCategoryGap: 10, /* 多个并排柱子设置柱子之间的间距*/
|
|
|
barWidth: barWidth,
|
|
|
@@ -276,6 +280,7 @@ export default {
|
|
|
{ // gap
|
|
|
name: '',
|
|
|
type: 'bar',
|
|
|
+ legendHoverLink: false,
|
|
|
barWidth: gapWidth,
|
|
|
stack: 'total',
|
|
|
z: 0,
|
|
|
@@ -288,6 +293,10 @@ export default {
|
|
|
{ // 二级
|
|
|
name: '二级',
|
|
|
type: 'bar',
|
|
|
+ emphasis: {
|
|
|
+ focus: 'series',
|
|
|
+ blurScope: 'coordinateSystem'
|
|
|
+ },
|
|
|
stack: 'total',
|
|
|
barWidth: barWidth,
|
|
|
itemStyle: { // lenged文本
|
|
|
@@ -306,7 +315,7 @@ export default {
|
|
|
show: true,
|
|
|
position: ['50%', -barWidth - 10],
|
|
|
fontSize: this.EchartfontSize(16),
|
|
|
- color: '#fffff',
|
|
|
+ color: '#ffffff',
|
|
|
formatter: (evt) => {
|
|
|
return data[1][0] > 0 ? evt.value : ' '
|
|
|
}
|
|
|
@@ -316,6 +325,7 @@ export default {
|
|
|
{ // gap
|
|
|
name: '',
|
|
|
type: 'bar',
|
|
|
+ legendHoverLink: false,
|
|
|
barWidth: gapWidth,
|
|
|
stack: 'total',
|
|
|
z: 0,
|
|
|
@@ -329,6 +339,10 @@ export default {
|
|
|
name: '三级',
|
|
|
type: 'bar',
|
|
|
stack: 'total',
|
|
|
+ emphasis: {
|
|
|
+ focus: 'series',
|
|
|
+ blurScope: 'coordinateSystem'
|
|
|
+ },
|
|
|
barWidth: barWidth,
|
|
|
itemStyle: { // lenged文本
|
|
|
opacity: 1,
|
|
|
@@ -346,7 +360,7 @@ export default {
|
|
|
show: true,
|
|
|
position: ['50%', -barWidth - 10],
|
|
|
fontSize: this.EchartfontSize(16),
|
|
|
- color: '#fffff',
|
|
|
+ color: '#ffffff',
|
|
|
formatter: (evt) => {
|
|
|
return data[2][0] > 0 ? evt.value : ' '
|
|
|
}
|
|
|
@@ -475,7 +489,7 @@ export default {
|
|
|
'symbolOffset': [symbolOffsetWidth, 0],
|
|
|
'z': 12,
|
|
|
itemStyle: {
|
|
|
- opacity: data[2][0] === 0 ? 0 : 1,
|
|
|
+ opacity: !data[2][0] ? 0 : 1,
|
|
|
color: (params) => {
|
|
|
return new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
|
|
|
offset: data[2][0] === 0 ? 0 : 1,
|
|
|
@@ -509,7 +523,7 @@ export default {
|
|
|
'z': 12,
|
|
|
show: false,
|
|
|
itemStyle: {
|
|
|
- opacity: data[2][0] === 0 ? 0 : 1,
|
|
|
+ opacity: !data[2][0] ? 0 : 1,
|
|
|
color: (params) => {
|
|
|
return new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
|
|
|
offset: 0,
|