Skip to content

Commit

Permalink
文档、图片大小优化、雷达图例子更新
Browse files Browse the repository at this point in the history
  • Loading branch information
kener committed Sep 11, 2013
1 parent 5357148 commit dcbe976
Show file tree
Hide file tree
Showing 30 changed files with 331 additions and 83 deletions.
2 changes: 2 additions & 0 deletions doc/asset/css/flexslider.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,6 @@ img.flex-active {border-bottom:10px solid #c3e7fd}
font-weight: bolder;
text-align:center;
background-color:#c3e7fd;
height:30px;
line-height:30px;
}
Binary file modified doc/asset/img/architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/asset/img/dataView.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/asset/img/datazoom.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/asset/img/doc/charts.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/asset/img/draggable.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/asset/img/example/dynamicLineBar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/asset/img/example/dynamicPieRadar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/asset/img/example/dynamicScatterK.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/asset/img/example/radar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed doc/asset/img/example/radar1.jpg
Binary file not shown.
Binary file added doc/asset/img/example/radar1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed doc/asset/img/example/radar2.jpg
Binary file not shown.
Binary file added doc/asset/img/example/radar2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/asset/img/example/radar3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/asset/img/legendSelected.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/asset/img/magicType.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/asset/img/mark.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/asset/img/mix.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/asset/img/scatter.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/asset/img/slide-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/asset/img/slide-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/asset/img/slide-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions doc/doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ <h4>单图表类型:radar(暂不支持)<a name="Radar"> </a></h4>
<th> 填充雷达图 </th>
</tr>
<tr>
<td><img src="./asset/img/example/radar1.jpg" title="" alt="雷达图"/></td>
<td><img src="./asset/img/example/radar2.jpg" title="" alt="填充雷达图"/></td>
<td><img src="./asset/img/example/radar1.png" title="" alt="雷达图"/></td>
<td><img src="./asset/img/example/radar2.png" title="" alt="填充雷达图"/></td>
</tr>
</table>

Expand Down
85 changes: 62 additions & 23 deletions doc/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,33 @@ <h1>饼图</h1>
</div>
</section>
</div>
<div class="span6">
<h1>雷达图</h1>
<section class="slider">
<div class="flexslider thumb4">
<ul class="slides">
<li data-thumb="asset/img/example/cache.png">
<a href="example/radar1.html"><img src="asset/img/example/cache.png"></a>
<p>标准雷达图</p>
</li><!--/li-->
<li data-thumb="asset/img/example/cache.png">
<a href="example/radar2.html"><img src="asset/img/example/cache.png"></a>
<p>标准填充雷达图</p>
</li><!--/li-->
<li data-thumb="asset/img/example/cache.png">
<a href="example/radar3.html"><img src="asset/img/example/cache.png"></a>
<p>多雷达图</p>
</li><!--/li-->
<li data-thumb="asset/img/example/cache.png">
<a href="example/radar.html"><img src="asset/img/example/cache.png"></a>
<p>雷达图:【个性化】线条,拐点,填充样式</p>
</li><!--/li-->
</ul>
</div>
</section>
</div>
</div>
<div class="row-fluid">
<div class="span6">
<h1>地图</h1>
<section class="slider">
Expand All @@ -227,8 +254,6 @@ <h1>地图</h1>
</div>
</section>
</div>
</div>
<div class="row-fluid">
<div class="span6">
<h1>力导向布局图</h1>
<section class="slider">
Expand All @@ -246,27 +271,6 @@ <h1>力导向布局图</h1>
</div>
</section>
</div>
<div class="span6">
<h1>其他</h1>
<section class="slider">
<div class="flexslider thumb3">
<ul class="slides">
<li data-thumb="asset/img/example/cache.png">
<a href="example/loading.html"><img src="asset/img/example/cache.png"></a>
<p>加载中(Loading)</p>
</li><!--/li-->
<li data-thumb="asset/img/example/cache.png">
<a href="example/event.html"><img src="asset/img/example/cache.png"></a>
<p>事件</p>
</li><!--/li-->
<li data-thumb="asset/img/example/import.png">
<a href="example/www/index.html"><img src="asset/img/example/import.png"></a>
<p>单文件引入ECharts</p>
</li><!--/li-->
</ul>
</div>
</section>
</div>
</div>
<div class="row-fluid">
<div class="span6">
Expand Down Expand Up @@ -336,6 +340,41 @@ <h1>组件</h1>
</section>
</div>
</div>
<div class="row-fluid">
<div class="span6">
<h1>其他</h1>
<section class="slider">
<div class="flexslider thumb3">
<ul class="slides">
<li data-thumb="asset/img/example/cache.png">
<a href="example/dynamicLineBar.html"><img src="asset/img/example/cache.png"></a>
<p>动态数据(折线图、柱状图)</p>
</li><!--/li-->
<li data-thumb="asset/img/example/cache.png">
<a href="example/dynamicScatterK.html"><img src="asset/img/example/cache.png"></a>
<p>动态数据(散点图、K线图)</p>
</li><!--/li-->
<li data-thumb="asset/img/example/cache.png">
<a href="example/dynamicPieRadar.html"><img src="asset/img/example/cache.png"></a>
<p>动态数据(饼图、雷达图)</p>
</li><!--/li-->
<li data-thumb="asset/img/example/cache.png">
<a href="example/loading.html"><img src="asset/img/example/cache.png"></a>
<p>加载中(Loading)</p>
</li><!--/li-->
<li data-thumb="asset/img/example/cache.png">
<a href="example/event.html"><img src="asset/img/example/cache.png"></a>
<p>事件交互,可以捕获的用户交互和数据变化事件实现图表与外界的联动。</p>
</li><!--/li-->
<li data-thumb="asset/img/example/import.png">
<a href="example/www/index.html"><img src="asset/img/example/import.png"></a>
<p>单文件引入ECharts</p>
</li><!--/li-->
</ul>
</div>
</section>
</div>
</div>
<hr>
<footer>
<p class="pull-right"><a href="#">Back to top</a></p>
Expand Down
9 changes: 1 addition & 8 deletions doc/example/dynamicPieRadar.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,13 @@
{
name: 'radar',
type: 'radar',
itemStyle: {normal: {areaStyle: {type: 'default'}}},
data: (function(){
var res = [];
var color = [
'rgba(111,111,22, 0.5)',
'rgba(200,0,0,0.5)',
'rgba(20,100,100,0.5)'
];
var len = 0;
while (len++ < 3) {
res.push({
name: 'data' + len,
itemStyle : {
normal : { color: color[len - 1]}
},
value: [
Math.round(Math.random()*100),
Math.round(Math.random()*100),
Expand Down
56 changes: 40 additions & 16 deletions doc/example/radar.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: 'item'
trigger: 'axis'
},
legend: {
x : 'left',
Expand Down Expand Up @@ -115,12 +115,6 @@
name: '雷达图',
type: 'radar',
itemStyle: {
normal: {
// color: 各异,
lineStyle: {
width: 2
}
},
emphasis: {
// color: 各异,
lineStyle: {
Expand All @@ -139,22 +133,31 @@
lineStyle: {
type: 'dashed'
}
},
emphasis: {
lineStyle: {
type: 'solid'
}
}
}
},
{
value : [10, 3, 0.20, -100, 1000],
name : '图二'
name : '图二',
itemStyle: {
normal: {
areaStyle: {
type: 'default'
}
}
}
},
{
value : [20, 3, 0.3, -13.5, 3000],
name : '图三',
symbol: 'none' // 拐点图形类型,非标准参数
symbol: 'none', // 拐点图形类型,非标准参数
itemStyle: {
normal: {
lineStyle: {
type: 'dotted'
}
}
}
}
]
},
Expand All @@ -172,11 +175,32 @@
data : [
{
value : [120, 118, 130, 100, 99, 70],
name : '张三'
name : '张三',
itemStyle: {
normal: {
areaStyle: {
color: (function(){
var zrColor = require('zrender/tool/color');
var x = document.getElementById('main').offsetWidth - 250;
return zrColor.getRadialGradient(
x, 210, 0, x, 200, 150,
[[0, 'rgba(255,255,0,0.3)'],[1, 'rgba(255,0,0,0.5)']]
)
})()
}
}
}
},
{
value : [90, 113, 140, 30, 70, 60],
name : '李四'
name : '李四',
itemStyle: {
normal: {
lineStyle: {
type: 'dashed'
}
}
}
}
]
}
Expand Down
6 changes: 1 addition & 5 deletions doc/example/radar1.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
subtext: '纯属虚构'
},
tooltip : {
trigger: 'item'
trigger: 'axis'
},
legend: {
orient : 'vertical',
Expand Down Expand Up @@ -103,10 +103,6 @@
]
}
],
color : [
'rgba(111,111,22, 0.5)',
'rgba(200,0,0,0.5)'
],
calculable : true,
series : [
{
Expand Down
51 changes: 22 additions & 29 deletions doc/example/radar2.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,16 @@
<div class="well sidebar-nav">
<div class="nav-header"><a href="#" onclick="autoResize()" class="icon-resize-full" id ="icon-resize" ></a>option</div>
<textarea id="code" name="code">
indicator = [
{name : '进攻', max : 100},
{name : '防守', max : 100},
{name : '体能', max : 100},
{name : '速度', max : 100},
{name : '力量', max : 100},
{name : '技巧', max : 100}
];
option = {
title : {
text: '罗纳尔多 vs 舍普琴科',
subtext: '完全实况球员数据'
},
tooltip : {
trigger: 'item'
trigger: 'axis'
},
legend: {
x : '320',
y : '50',
x : 'center',
data:['罗纳尔多','舍普琴科']
},
toolbox: {
Expand All @@ -97,37 +88,39 @@
saveAsImage : true
}
},
color : [
'rgba(111,111,22, 0.5)',
'rgba(200,0,0,0.5)',
'rgba(20,100,100,0.5)'
],
calculable : true,
polar : [
{
radius : 100,
center : [200, 200],
indicator : indicator
},
{
radius : 100,
center : [600, 200],
indicator : indicator
indicator : [
{name : '进攻', max : 100},
{name : '防守', max : 100},
{name : '体能', max : 100},
{name : '速度', max : 100},
{name : '力量', max : 100},
{name : '技巧', max : 100}
],
radius : 130
}
],
series : [
{
name: '完全实况球员数据',
type: 'radar',
itemStyle: {
normal: {
areaStyle: {
type: 'default'
}
}
},
data : [
{
value : [97, 32, 74, 95, 88, 92],
name : '罗纳尔多'
value : [97, 42, 88, 94, 90, 86],
name : '舍普琴科'
},
{
value : [97, 42, 88, 94, 90, 86],
name : '舍普琴科',
polarIndex : 1
value : [97, 32, 74, 95, 88, 92],
name : '罗纳尔多'
}
]
}
Expand Down
Loading

0 comments on commit dcbe976

Please sign in to comment.