提交 33a8ec7a 编写于 作者: P pissang

fix(legend): fix legend color with visual encoded on style.stroke

上级 7a09ecca
......@@ -198,7 +198,7 @@ class LegendView extends ComponentView {
if (seriesModel) {
const data = seriesModel.getData();
const style = data.getVisual('style');
const color = style.fill;
const color = style[data.getVisual('drawType')] || style.fill;
const borderColor = style.stroke;
// Using rect symbol defaultly
......
......@@ -125,7 +125,7 @@ under the License.
}
],
legend: {
data: ['line', 'line2', 'line3']
left: 'right'
},
tooltip: {
trigger: 'item',
......@@ -215,11 +215,6 @@ under the License.
]
}
},
{
name: 'outlier',
type: 'scatter',
data: data.outliers
}
]
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册