Skip to content

Commit

Permalink
加入tooltip和legend的过滤
Browse files Browse the repository at this point in the history
  • Loading branch information
pissang committed Jun 26, 2013
1 parent 946f6e7 commit 94a2ff8
Show file tree
Hide file tree
Showing 5 changed files with 578 additions and 515 deletions.
21 changes: 5 additions & 16 deletions doc/example/force.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<textarea id="code" name="code">
option = {
tooltip : {
trigger: 'axis'
trigger: 'item'
},
legend: {
data:['收入','支出']
Expand All @@ -82,24 +82,13 @@
name: '收入',
itemStyle: {
normal: {
brushType : 'both',
color : '#f08c2e',
label: {
show: true,
position: 'outer'
// textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
},
nodeStyle : {
brushType : 'both',
color : '#f08c2e',
strokeColor : '#5182ab',
lineWidth : 2
},
lineStyle : {
strokeColor : '#5182ab'
}
strokeColor : '#5182ab',
lineWidth : 2
},
emphasis: {

}
}
},
Expand Down
4 changes: 1 addition & 3 deletions doc/example/webkit-dep-pre.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions doc/example/webkit-dep.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@
function(ec, webkitDepData) {

myChart = ec.init(document.getElementById("Main"));
webkitDepData.minRadius = 5;
webkitDepData.density = 0.8;
myChart.setOption({
tooltip : {
trigger: 'item'
},
series : [webkitDepData]
}, true);
}
Expand Down
Loading

0 comments on commit 94a2ff8

Please sign in to comment.