提交 195ba7d3 编写于 作者: P pissang

fix(label): fix interpolate value affect the original value.

上级 52c0f4d6
......@@ -218,7 +218,7 @@ class SankeyView extends ChartView {
cpy2: cpy2
});
curve.setStyle(lineStyleModel.getItemStyle());
curve.useStyle(lineStyleModel.getItemStyle());
// Special color, use source node color or target node color
switch (curve.style.fill) {
case 'source':
......@@ -347,7 +347,7 @@ class SankeyView extends ChartView {
if (edgeModel.get('focusNodeAdjacency')) {
const blurState = el.ensureState('blur');
blurState.style = {
opacity: 0.1
opacity: 0.02
};
el.on('mouseover', el.focusNodeAdjHandler = function () {
......
......@@ -705,9 +705,9 @@ function getLabelText<LDI>(
null,
labelDimIndex,
normalModel && normalModel.get('formatter'),
{
interpolateValues != null ? {
value: interpolateValues
}
} : null
);
}
if (baseText == null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册