提交 7159e0e3 编写于 作者: S sushuang

Fix label.

上级 793946d6
...@@ -393,19 +393,17 @@ function makeRenderItem(customSeries, data, ecModel, api) { ...@@ -393,19 +393,17 @@ function makeRenderItem(customSeries, data, ecModel, api) {
var itemStyle = currItemModel.getModel(ITEM_STYLE_EMPHASIS_PATH).getItemStyle(); var itemStyle = currItemModel.getModel(ITEM_STYLE_EMPHASIS_PATH).getItemStyle();
if (currLabelValueDim != null) { graphicUtil.setTextStyle(itemStyle, currLabelEmphasisModel, null, {
graphicUtil.setTextStyle(itemStyle, currLabelEmphasisModel, null, { isRectText: true
isRectText: true }, true);
}, true);
itemStyle.text = currLabelEmphasisModel.getShallow('show')
itemStyle.text = currLabelEmphasisModel.getShallow('show') ? zrUtil.retrieve3(
? zrUtil.retrieve3( customSeries.getFormattedLabel(dataIndexInside, 'emphasis'),
customSeries.getFormattedLabel(dataIndexInside, 'emphasis'), customSeries.getFormattedLabel(dataIndexInside, 'normal'),
customSeries.getFormattedLabel(dataIndexInside, 'normal'), getDefaultLabel(data, dataIndexInside)
data.get(currLabelValueDim, dataIndexInside) )
) : null;
: null;
}
extra && zrUtil.extend(itemStyle, extra); extra && zrUtil.extend(itemStyle, extra);
return itemStyle; return itemStyle;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册