refactor: 瀑布图图例文字优化
This commit is contained in:
parent
7792eab8eb
commit
5e5d456f84
@ -45,7 +45,25 @@ export function baseWaterfallOptionAntV(plot, container, chart, action) {
|
|||||||
appendPadding: getPadding(chart),
|
appendPadding: getPadding(chart),
|
||||||
label: label,
|
label: label,
|
||||||
tooltip: tooltip,
|
tooltip: tooltip,
|
||||||
legend: {},
|
legend: {
|
||||||
|
items: [
|
||||||
|
{ name: '增加', marker: {
|
||||||
|
style: {
|
||||||
|
fill: theme.styleSheet.paletteQualitative10[0]
|
||||||
|
}
|
||||||
|
}},
|
||||||
|
{ name: '减少', marker: {
|
||||||
|
style: {
|
||||||
|
fill: theme.styleSheet.paletteQualitative10[1]
|
||||||
|
}
|
||||||
|
}},
|
||||||
|
{ name: '合计', marker: {
|
||||||
|
style: {
|
||||||
|
fill: theme.styleSheet.paletteQualitative10[2]
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
]
|
||||||
|
},
|
||||||
xAxis: xAxis,
|
xAxis: xAxis,
|
||||||
yAxis: yAxis,
|
yAxis: yAxis,
|
||||||
risingFill: theme.styleSheet.paletteQualitative10[0],
|
risingFill: theme.styleSheet.paletteQualitative10[0],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user