You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2023/06/08 11:53:45 UTC
[echarts] 01/03: fix(label): revert fdda0254e2a1594f71a44a2a0c30def700e58acb (#18222)
This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch fix/sankey-label-formatter
in repository https://gitbox.apache.org/repos/asf/echarts.git
commit 54d82434bb132b42896f36a6ec0a1e94fa3e8078
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Thu Jun 8 19:06:28 2023 +0800
fix(label): revert fdda0254e2a1594f71a44a2a0c30def700e58acb (#18222)
---
src/label/labelStyle.ts | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/label/labelStyle.ts b/src/label/labelStyle.ts
index 3d6740a37..fd44f45e9 100644
--- a/src/label/labelStyle.ts
+++ b/src/label/labelStyle.ts
@@ -94,7 +94,6 @@ interface SetLabelStyleOpt<TLabelDataIndex> extends TextCommonParams {
};
labelDataIndex?: TLabelDataIndex;
labelDimIndex?: number;
- labelValue?: number;
/**
* Inject a setter of text for the text animation case.
@@ -136,7 +135,6 @@ function getLabelText<TLabelDataIndex>(
const labelFetcher = opt.labelFetcher;
const labelDataIndex = opt.labelDataIndex;
const labelDimIndex = opt.labelDimIndex;
- const labelValue = opt.labelValue;
const normalModel = stateModels.normal;
let baseText;
if (labelFetcher) {
@@ -145,7 +143,9 @@ function getLabelText<TLabelDataIndex>(
null,
labelDimIndex,
normalModel && normalModel.get('formatter'),
- {interpolatedValue: retrieve2(interpolatedValue, labelValue)}
+ interpolatedValue != null ? {
+ interpolatedValue
+ } : null
);
}
if (baseText == null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org