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