修改label的颜色
This commit is contained in:
@@ -78,6 +78,7 @@ const option = reactive({
|
||||
symbolSize: 32,
|
||||
label: {
|
||||
show: true,
|
||||
color: 'white',
|
||||
formatter: '{@[2]}'
|
||||
},
|
||||
itemStyle: {
|
||||
@@ -90,6 +91,7 @@ const option = reactive({
|
||||
symbolSize: 32,
|
||||
label: {
|
||||
show: true,
|
||||
color: 'white',
|
||||
formatter: '{@[2]}'
|
||||
},
|
||||
itemStyle: {
|
||||
|
||||
@@ -58,6 +58,7 @@ const option = reactive({
|
||||
barCategoryGap: '50%',
|
||||
label: {
|
||||
show: true,
|
||||
color: 'white',
|
||||
position: 'top',
|
||||
formatter: function ({ value }) {
|
||||
return !value || value[1] === 0 ? '' : value[1];
|
||||
|
||||
Reference in New Issue
Block a user