Unverified 提交 632f111a authored 作者: XiaJunjie2020's avatar XiaJunjie2020 提交者: GitHub

Merge pull request #1131 from dataease/pr@v1.4@refactor_waterfall

refactor: 瀑布图图例文字优化
...@@ -43,7 +43,25 @@ export function baseWaterfallOptionAntV(plot, container, chart, action) { ...@@ -43,7 +43,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],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论