forked from apache/echarts
-
Notifications
You must be signed in to change notification settings - Fork 0
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
18 changed files
with
591 additions
and
62 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="description" content="ECharts"> | ||
<meta name="author" content="[email protected]"> | ||
<title>ECharts · Example</title> | ||
|
||
<link rel="shortcut icon" href="../asset/ico/favicon.png"> | ||
|
||
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> | ||
<link href="../asset/css/bootstrap.css" rel="stylesheet"> | ||
<link href="../asset/css/carousel.css" rel="stylesheet"> | ||
<link href="../asset/css/echartsHome.css" rel="stylesheet"> | ||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> | ||
<!--[if lt IE 9]> | ||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> | ||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | ||
<![endif]--> | ||
|
||
<script src="../asset/js/esl/esl.js"></script> | ||
<script src="../asset/js/codemirror.js"></script> | ||
<script src="../asset/js/javascript.js"></script> | ||
|
||
<link href="../asset/css/codemirror.css" rel="stylesheet"> | ||
<link href="../asset/css/monokai.css" rel="stylesheet"> | ||
</head> | ||
|
||
<body> | ||
<!-- Fixed navbar --> | ||
<div class="navbar navbar-default navbar-fixed-top" role="navigation" id="head"></div> | ||
|
||
|
||
<div class="container-fluid"> | ||
<div class="row-fluid example"> | ||
<div id="sidebar-code" class="col-md-4"> | ||
<div class="well sidebar-nav"> | ||
<div class="nav-header"><a href="#" onclick="autoResize()" class="glyphicon glyphicon-resize-full" id ="icon-resize" ></a>option</div> | ||
<textarea id="code" name="code"> | ||
option = { | ||
title : { | ||
text: 'ECharts2 vs ECharts1', | ||
subtext: 'Chrome下测试数据' | ||
}, | ||
tooltip : { | ||
trigger: 'axis' | ||
}, | ||
legend: { | ||
data:[ | ||
'ECharts1 - 2k数据','ECharts1 - 2w数据','ECharts1 - 20w数据','', | ||
'ECharts2 - 2k数据','ECharts2 - 2w数据','ECharts2 - 20w数据', | ||
] | ||
}, | ||
toolbox: { | ||
show : true, | ||
feature : { | ||
mark : {show: true}, | ||
dataView : {show: true, readOnly: false}, | ||
magicType : {show: true, type: ['line', 'bar']}, | ||
restore : {show: true}, | ||
saveAsImage : {show: true} | ||
} | ||
}, | ||
calculable : true, | ||
grid: {y: 70, y2:30, x2:20}, | ||
xAxis : [ | ||
{ | ||
type : 'category', | ||
data : ['Line','Bar','Scatter','K','Map'] | ||
}, | ||
{ | ||
type : 'category', | ||
axisLine: {show:false}, | ||
axisTick: {show:false}, | ||
axisLabel: {show:false}, | ||
splitArea: {show:false}, | ||
splitLine: {show:false}, | ||
data : ['Line','Bar','Scatter','K','Map'] | ||
} | ||
], | ||
yAxis : [ | ||
{ | ||
type : 'value', | ||
axisLabel:{formatter:'{value} ms'} | ||
} | ||
], | ||
series : [ | ||
{ | ||
name:'ECharts2 - 2k数据', | ||
type:'bar', | ||
itemStyle: {normal: {color:'rgba(193,35,43,1)', label:{show:true}}}, | ||
data:[40,155,95,75, 0] | ||
}, | ||
{ | ||
name:'ECharts2 - 2w数据', | ||
type:'bar', | ||
itemStyle: {normal: {color:'rgba(181,195,52,1)', label:{show:true,textStyle:{color:'#27727B'}}}}, | ||
data:[100,200,105,100,156] | ||
}, | ||
{ | ||
name:'ECharts2 - 20w数据', | ||
type:'bar', | ||
itemStyle: {normal: {color:'rgba(252,206,16,1)', label:{show:true,textStyle:{color:'#E87C25'}}}}, | ||
data:[906,911,908,778,0] | ||
}, | ||
{ | ||
name:'ECharts1 - 2k数据', | ||
type:'bar', | ||
xAxisIndex:1, | ||
itemStyle: {normal: {color:'rgba(193,35,43,0.5)', label:{show:true,formatter:function(a,b,c){return c>0 ? (c +'\n'):'';}}}}, | ||
data:[96,224,164,124,0] | ||
}, | ||
{ | ||
name:'ECharts1 - 2w数据', | ||
type:'bar', | ||
xAxisIndex:1, | ||
itemStyle: {normal: {color:'rgba(181,195,52,0.5)', label:{show:true}}}, | ||
data:[491,2035,389,955,347] | ||
}, | ||
{ | ||
name:'ECharts1 - 20w数据', | ||
type:'bar', | ||
xAxisIndex:1, | ||
itemStyle: {normal: {color:'rgba(252,206,16,0.5)', label:{show:true,formatter:function(a,b,c){return c>0 ? (c +'+'):'';}}}}, | ||
data:[3000,3000,2817,3000,0] | ||
} | ||
] | ||
}; | ||
</textarea> | ||
</div><!--/.well --> | ||
</div><!--/span--> | ||
<div id="graphic" class="col-md-8"> | ||
<div id="main" class="main"></div> | ||
<div> | ||
<button type="button" class="btn btn-sm btn-success" onclick="refresh(true)">刷 新</button> | ||
<span class="text-primary">切换主题</span> | ||
<select id="theme-select"></select> | ||
|
||
<span id='wrong-message' style="color:red"></span> | ||
</div> | ||
</div><!--/span--> | ||
</div><!--/row--> | ||
|
||
</div><!--/.fluid-container--> | ||
|
||
<footer id="footer"></footer> | ||
<!-- Le javascript | ||
================================================== --> | ||
<!-- Placed at the end of the document so the pages load faster --> | ||
<script src="../asset/js/jquery.min.js"></script> | ||
<script type="text/javascript" src="../asset/js/echartsHome.js"></script> | ||
<script src="../asset/js/bootstrap.min.js"></script> | ||
<script src="../asset/js/echartsExample.js"></script> | ||
</body> | ||
</html> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,19 +34,19 @@ | |
|
||
<div class="row featurette"> | ||
<h2 class="featurette-heading">Architecture</h2> | ||
<div class="col-md-7 pull-right" style="padding:0;margin-top:-30px;"> | ||
<div class="col-md-7 pull-right" style="padding:0;margin-top:-60px;"> | ||
<img src="./asset/img/architecture.png" alt="ECharts Architecture" style="max-width: 100%;"/> | ||
</div> | ||
<p class="lead">ECharts (Enterprise Charts 商业产品图表库)</p> | ||
<p>提供商业产品常用图表,底层基于<a href="http://ecomfe.github.io/zrender/" target="_blank">ZRender</a>(一个全新的轻量级canvas类库),创建了坐标系,图例,提示,工具箱等基础组件,并在此上构建出折线图、柱状图、散点图、K线图、饼图、雷达图、地图、和弦图、力导向布局图、仪表盘以及漏斗图,同时支持任意维度的堆积和多图表混合展现。</p> | ||
<div style="float:left;margin:20px 10px 30px 10px;"><img src="./asset/img/device.png" alt="Echarts device"/></div> | ||
<div> | ||
<img src="./asset/img/explorer.png" alt="Echarts explorer"/> | ||
<p style="float:right;text-align:right;padding-top:20px;"><strong>———— 开源来自百度商业前端数据可视化团队</strong><br/><span><a href="http://im.baidu.com/" target="_blank">Baidu Hi</a> : 1379172 | <a href="mailto:[email protected]">[email protected]</a></span></p> | ||
<div> | ||
<small> 支持IE6/7/8/9+,chrome、firefox、safari、opera <i>(IE8- power by <a href="https://code.google.com/p/explorercanvas/" target="_blank">excanvas</a> )</i></small> | ||
<small> 支持IE6/7/8/9+,chrome、firefox、safari、opera <i><br/> (IE8- power by <a href="https://code.google.com/p/explorercanvas/" target="_blank">excanvas</a> )</i></small> | ||
</div> | ||
</div> | ||
<p style="float:right;text-align:right;"><strong>———— 开源来自百度商业前端数据可视化团队</strong><br/><span><a href="http://im.baidu.com/" target="_blank">Baidu Hi</a> : 1379172 | <a href="mailto:[email protected]">[email protected]</a></span></p> | ||
</div> | ||
|
||
<div class="row featurette"> | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.