Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48c64a0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不知道这个是不是BUG。例子中的 PieTest7 带时间轴的饼图,标签不能格式化。
48c64a0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@w17731138318 例子看着没问题,不知道你说的标签格式化是指的什么?
48c64a0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
就是饼 Label 的显示效果都是默认效果。不能控制label的normal属性。我用的是3.x是不是需要换成2.7
是否和下面的原因有关:
label选项在 ECharts 2.x 中放置于itemStyle.normal下,在 ECharts 3 中为了让整个配置项结构更扁平合理,label被拿出来跟 itemStyle 平级。
我试着改写,能够格式化,但是和timeline的Label属性冲突了。把timeline也一块格式了。
48c64a0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://echarts.baidu.com/gallery/editor.html?c=doc-example/mix-timeline-all
在193行内添加
label:{
normal :{
formatter :'{b}{c}({d}%)',
show:true
}
},
实现这种效果
48c64a0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
其中
.formatter("{b}{c}({d}%)");
是我刚刚添加的一个属性。完全可以实现。这个新的属性,下个版本可用。
48c64a0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
准备发布一个3.0.0.1版本,你明天可以试试。