代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link href="https://cdn.bootcss.com/bootstrap-treeview/1.2.0/bootstrap-treeview.min.css" rel="stylesheet">
</head>
<body>
<div class="text-center">
<h1>银行资本充足率</h1>
<h1>Bank Capital to Assets Ratio</h1>
<p>单位:% (%)</p>
</div>
<div class="container">
<div class="row">
<table class="table table-bordered">
<thead>
<tr>
<th>国家或地区</th>
<th>2000年</th>
<th>2005年</th>
<th>2010年</th>
<th>2013年</th>
<th>2014年</th>
<th>2015年</th>
</tr>
</thead>
<tbody>
<tr>
<td>阿尔巴尼亚</td>
<td>/</td>
<td>/</td>
<td>/</td>
<td>/</td>
<td>/</td>
<td>/</td>
</tr>
<tr>
<td>爱沙尼亚</td>
<td>/</td>
<td>/</td>
<td>/</td>
<td>/</td>
<td>/</td>
<td>/</td>
</tr>
<tr>
<td>保加利亚</td>
<td>/</td>
<td>2.6</td>
<td>15.4</td>
<td>5.1</td>
<td>/</td>
<td>0.8</td>
</tr>
<tr>
<td>波兰</td>
<td>38.2</td>
<td>8.6</td>
<td>27.9</td>
<td>36.4</td>
<td>11.1</td>
<td>14.5</td>
</tr>
<tr>
<td>黑山</td>
<td>/ </td>
<td>/</td>
<td>/</td>
<td>1.4</td>
<td>/</td>
<td>1.1</td>
</tr>
<tr>
<td>捷克共和国</td>
<td>/</td>
<td>25.3</td>
<td>98.4</td>
<td>/</td>
<td>/</td>
<td>10.7</td>
</tr>
<tr>
<td>克罗地亚</td>
<td>/</td>
<td>1.7</td>
<td>5.9</td>
<td>4.1</td>
<td>/</td>
<td>1.8</td>
</tr>
<tr>
<td>拉脱维亚</td>
<td>/</td>
<td>/</td>
<td>/</td>
<td>/</td>
<td>/</td>
<td>/</td>
</tr>
<tr>
<td>立陶宛</td>
<td>/</td>
<td>/</td>
<td>/</td>
<td>/</td>
<td>/</td>
<td>/</td>
</tr>
<tr>
<td>罗马尼亚</td>
<td>/</td>
<td>1.4</td>
<td>9.0</td>
<td>11.8</td>
<td>/</td>
<td>1.0</td>
</tr>
<tr>
<td>马其顿</td>
<td>/</td>
<td>1.6</td>
<td>18.3</td>
<td>4.6</td>
<td>/</td>
<td>0.4</td>
</tr>
<tr>
<td>塞尔维亚</td>
<td>/</td>
<td>2.6</td>
<td>9.7</td>
<td>7.6</td>
<td>/</td>
<td>0.8</td>
</tr>
<tr>
<td>斯洛伐克</td>
<td>/</td>
<td>0.1</td>
<td>0.1</td>
<td>7.4</td>
<td>/</td>
<td>0.3</td>
</tr>
<tr>
<td>斯洛文尼亚</td>
<td>6.0</td>
<td>1.3</td>
<td>6.0</td>
<td>5.1</td>
<td>0.9</td>
<td>1.0</td>
</tr>
<tr>
<td>匈牙利</td>
<td>42.1</td>
<td>19.7</td>
<td>68.0</td>
<td>95.5</td>
<td>6.2</td>
<td>20.3</td>
</tr>
<tr>
<td>波黑</td>
<td>/</td>
<td>/</td>
<td>/</td>
<td>/</td>
<td>/</td>
<td>/</td>
</tr>
</tbody>
</table>
</div>
<div class="row">
<div class="col-md-12" id="main" style="width: 100%; height: 400px;">
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.slim.min.js"></script>
<script src="https://cdn.bootcss.com/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap-treeview/1.2.0/bootstrap-treeview.min.js"></script>
<script src="./static/js/echarts.min.js"></script>
<script type="text/javascript">
var dataS='["2000年","2005年","2010年","2013年","2014年","2015年"]';
var dataNames='["zero","five","ten","thirteen","fourteen","fiveteen"]';
var pageViews='[{"country":"阿尔巴尼亚","five":" /","fiveteen":"/ ","fourteen":"/ ","id":1,"pojoName":"bankcapitaladequacyratio","ten":"/ ","thirteen":"/ ","zero":"/ "},{"country":"爱沙尼亚","five":" /","fiveteen":"/ ","fourteen":" /","id":2,"pojoName":"bankcapitaladequacyratio","ten":"/ ","thirteen":"/ ","zero":"/ "},{"country":"保加利亚","five":"2.6","fiveteen":"0.8","fourteen":" /","id":3,"pojoName":"bankcapitaladequacyratio","ten":"15.4","thirteen":"5.1","zero":"/ "},{"country":"波兰","five":"8.6","fiveteen":"14.5","fourteen":"11.1","id":4,"pojoName":"bankcapitaladequacyratio","ten":"27.9","thirteen":"36.4","zero":"38.2"},{"country":"黑山","five":" /","fiveteen":"1.1","fourteen":" /","id":5,"pojoName":"bankcapitaladequacyratio","ten":"/ ","thirteen":"1.4","zero":"/ "},{"country":"捷克共和国","five":"25.3","fiveteen":"10.7","fourteen":"/ ","id":6,"pojoName":"bankcapitaladequacyratio","ten":"98.4","thirteen":" /","zero":"/ "},{"country":"克罗地亚","five":"1.7","fiveteen":"1.8","fourteen":"/ ","id":7,"pojoName":"bankcapitaladequacyratio","ten":"5.9","thirteen":"4.1","zero":"/ "},{"country":"拉脱维亚","five":" /","fiveteen":"/ ","fourteen":"/ ","id":8,"pojoName":"bankcapitaladequacyratio","ten":"/ ","thirteen":"/ ","zero":" /"},{"country":"立陶宛","five":" /","fiveteen":"/ ","fourteen":"/ ","id":9,"pojoName":"bankcapitaladequacyratio","ten":"/ ","thirteen":"/ ","zero":" /"},{"country":"罗马尼亚","five":"1.4","fiveteen":"1.0","fourteen":"/ ","id":10,"pojoName":"bankcapitaladequacyratio","ten":"9.0","thirteen":"11.8","zero":"/ "},{"country":"马其顿","five":"1.6","fiveteen":"0.4","fourteen":"/ ","id":11,"pojoName":"bankcapitaladequacyratio","ten":"18.3","thirteen":"4.6","zero":"/ "},{"country":"塞尔维亚","five":"2.6","fiveteen":"0.8","fourteen":"/ ","id":12,"pojoName":"bankcapitaladequacyratio","ten":"9.7","thirteen":"7.6","zero":"/ "},{"country":"斯洛伐克","five":"0.1","fiveteen":"0.3","fourteen":"/ ","id":13,"pojoName":"bankcapitaladequacyratio","ten":"0.1","thirteen":"7.4","zero":"/ "},{"country":"斯洛文尼亚","five":"1.3","fiveteen":"1.0","fourteen":"0.9","id":14,"pojoName":"bankcapitaladequacyratio","ten":"6.0","thirteen":"5.1","zero":"6.0"},{"country":"匈牙利","five":"19.7","fiveteen":"20.3","fourteen":"6.2","id":15,"pojoName":"bankcapitaladequacyratio","ten":"68.0","thirteen":"95.5","zero":"42.1"},{"country":"波黑","five":"/ ","fiveteen":" /","fourteen":"/ ","id":16,"pojoName":"bankcapitaladequacyratio","ten":" /","thirteen":" /","zero":" /"}]';
var datas = eval('(' + dataS + ')');
var dataName = eval('(' + dataNames + ')');
var pageView = eval('(' + pageViews + ')');
var contry=new Array();
var seriesData=new Array();
for(var i=0;i<datas.length;i++){
var obj=new Object();
obj.name=datas[i];
obj.type='bar';
obj.data=new Array();
seriesData.push(obj);
}
for(var i=0;i<pageView.length;i++){
// var d=transform(pageView[i]);
var contrys=pageView[i];
var c=contrys['country'];
contry.push(c);
}
var i=0;
for(var j=0;j<dataName.length;j++){
for(var k=0;k<pageView.length;k++){
var b=pageView[k];
var c=b[dataName[j]];
seriesData[i].data.push(c);
}
i++;
}
function transform(obj){
var arr = [];
for(var item in obj){
arr.push(obj[item]);
}
return arr;
}
// app.title = '堆叠柱状图';
option = {
tooltip : {
trigger: 'axis',
axisPointer : { // 坐标轴指示器,坐标轴触发有效
type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
}
},
legend: {
data:datas
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis : [
{
type : 'category',
data : contry
}
],
yAxis : [
{
type : 'value'
}
],
series : seriesData
};
var myChart = echarts.init(document.getElementById('main'));
myChart.setOption(option);
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。