Skip to content

Commit

Permalink
更新文档~
Browse files Browse the repository at this point in the history
  • Loading branch information
abel533 committed Mar 15, 2016
1 parent f1a566e commit 48c64a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -12,6 +12,10 @@

**由于本项目反馈的bug并不多,为了方便每一个开发人员,每次修复bug都会发布一个小版本,并且bug修复只针对当前的大版本进行修复。**

##示例

[ECharts-Java使用Java快速开发ECharts图表](http://blog.csdn.net/isea533/article/details/43225717)

##Maven坐标

```xml
Expand All @@ -27,6 +31,7 @@
[ECharts-x.x.x.jar](http://mvnrepository.com/artifact/com.github.abel533/ECharts)

[API文档-3.0.0](https://oss.sonatype.org/content/repositories/releases/com/github/abel533/ECharts/3.0.0/ECharts-3.0.0-javadoc.jar) 下载后解压即可

##项目支持

###图表类型3.x版本(2.x版本支持的图表不一样)
Expand Down Expand Up @@ -97,6 +102,8 @@

##感谢各位的支持~~

- 宇哲 - ¥10 - 2016-03-15

##ECharts网址

http://echarts.baidu.com/
Expand Down

6 comments on commit 48c64a0

@w17731138318
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不知道这个是不是BUG。例子中的 PieTest7 带时间轴的饼图,标签不能格式化。

@abel533
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@w17731138318 例子看着没问题,不知道你说的标签格式化是指的什么?

@w17731138318
Copy link

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也一块格式了。

@w17731138318
Copy link

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
}
},
实现这种效果

@abel533
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pie pie = getPie(idx++).center("50%", "45%").radius("50%");
pie.label().normal().show(true).formatter("{b}{c}({d}%)");
basic.series(pie);

其中.formatter("{b}{c}({d}%)");是我刚刚添加的一个属性。完全可以实现。

输入图片说明

这个新的属性,下个版本可用。

@abel533
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

准备发布一个3.0.0.1版本,你明天可以试试。

Please sign in to comment.