【ECharts系列|02可视化大屏】 舆情分析,人口分析及警情警力活动情况的实现【上篇】

简介:ECharts实现可视化大屏展示,包含人口分析,警情警力分析多张效果图,

完整的html+css+js+img:https://download.csdn.net/download/weixin_41937552/16361615

项目结构:

activity.html

<!doctype html>
<meta charset="utf-8">
<title>人口分析</title>
<link href="css/style.css"  rel="stylesheet" type="text/css" media="all" />
<script src="js/echarts.min.js" charset="utf-8"></script><body>
<div class="bnt"><div class="topbnt_left fl"><ul><li><a href="analysis.html">警情警力</a></li><li><a href="people.html">实有人口</a></li><li class="active"><a href="activity.html">活动情况</a></li></ul></div><h1 class="tith1 fl">舆情分析</h1><div class=" fr topbnt_right"><ul><li><a href="#">返回</a></li><li><a href="traffic.html">交通</a></li><li><a href="public.html">舆情</a></li></ul></div>
</div>
<!-- bnt end -->
<div class="left1 pleft1"><div class="lefttime"><h2 class="tith2">统计时间</h2><div class="lefttime_text"><ul><li class="bg active">今日</li><li></li><li class="bg">本周</li><li></li><li class="bg">本月</li><li></li><li class="bg">本季</li><li></li><li class="bg">本年</li></ul></div></div><div class="plefttoday"><h2 class="tith2">今日活动统计</h2><div class="lefttoday_tit" style=" height:8%"><p class="fl">地区:甘孜</p><p class="fr">2018-06-14</p></div><div class="lefttoday_number"><div class="widget-inline-box text-center fl"><p>活动总数</p><h3 class="ceeb1fd">54</h3><h4 class="text-muted">环比<img src="img/iconup.png" height="16" />2%</h4></div><div class="widget-inline-box text-center fl"><p>佛事活动</p><h3 class="c24c9ff">54</h3><h4 class="text-muted">环比<img src="img/icondown.png" height="16" />3%</h4></div><div class="widget-inline-box text-center fl"><p>民俗活动</p><h3 class="cffff00">4</h3><h4 class="text-muted">环比<img src="img/icondown.png" height="16" />3%</h4></div><div class="widget-inline-box text-center fl"><p>其他活动</p><h3 class="c11e2dd">4</h3><h4 class="text-muted">环比<img src="img/icondown.png" height="16" />3%</h4></div></div><!-- lefttoday_number end --><!--  lefttoday_bar end--></div><div class="lpeftmidbot"><h2 class="tith2">活动占比</h2><div id="lpeftbot" class="lpeftmidbotcont"></div></div><div class="lpeftbot"><h2 class="tith2">活动人员性别分析</h2><div id="lpeftmidbot" class="lpeftbotcont" ></div></div>
</div>
<!--  left1 end -->
<div class="left2"><div class="pleftbox2top"><h2 class="tith2">活动人口名族分析</h2><div id="pleftbox2top" class="pleftbox2topcont"></div></div><div class="pleftbox2midd"><h2 class="tith2">实有人口年龄结构</h2><!-- <div id="pleftbox2midd" class="pleftbox2middcont"></div> --><div class="pvr fl  lpeftb2otcont1 hdtop" style=" height:82%;" ><ul><li class="hot1">1</li><li class="hot2">2</li><li class="hot3">3</li><li class="hot4">4</li><li class="hot5">5</li></ul><div id="pleftbox2bott_cont"class="pleftbox2middcont" style=" height:100%;" ></div></div></div><div class="lpeft2bot" ><h2 class="tith2 " >实有人口职业占比TOP5</h2>
<div id="prbottom_box1"class="lpeftb2otcont" ></div></div>
</div>
</div>
<div class="mrbox prbox"><div class="hdmrbox_top"><div class="mrbox_top_midd"><div class="hdmrboxtm-mbox"><h2 class="tith2 pt1">地图分析</h2><div class="lefttoday_tit font14" style=" height:13%"><p class="fl"><i class="ricontop redr">12</i>民事活动</p><p class="fr" ><i class="ricontop bluer">12</i>佛事活动</p></div><div class="mrboxtm-map hdmrboxtm-map"><ul><li class="bluer" style="top:28%;left:12%">15</li><li class="redr" style="top:31%;left:18%">13</li><!--  石渠县--><li class="bluer" style="top:31%;left:33%">15</li><li class="redr" style="top:34%;left:36%">13</li><!--  --><li class="bluer" style="top:12%;left:43%">15</li><li class="redr" style="top:15%;left:47%">13</li><!--  --><li class="bluer" style="top:22%;left:36%">15</li><li class="redr" style="top:25%;left:41%">13</li><!--  --><li class="bluer" style="top:23%;left:57%">15</li><li class="redr" style="top:16%;left:53%">13</li><!--  --><li class="bluer" style="top:26%;left:64%">15</li><li class="redr" style="top:22%;left:67%">13</li><!--  --><li class="bluer" style="top:7%;left:68%">15</li><li class="redr" style="top:15%;left:69%">13</li><!--  丹巴--><li class="bluer" style="top:32%;left:77%">15</li><li class="redr" style="top:35%;left:80%">13</li><!--  康定--><li class="bluer" style="top:28%;left:81%">15</li><li class="redr" style="top:27%;left:84%">13</li><!--  泸定--><li class="bluer" style="top:34%;left:69%">15</li><li class="redr" style="top:37%;left:73%">13</li><!--  雅江--><li class="bluer" style="top:48%;left:87%">15</li><li class="redr" style="top:47%;left:83%">13</li><!--  九龙--><li class="bluer" style="top:48%;left:60%">15</li><li class="redr" style="top:56%;left:62%">13</li><!--  理塘--><li class="bluer" style="top:68%;left:60%">15</li><li class="redr" style="top:70%;left:63%">13</li><!--  巴塘--><li class="bluer" style="top:67%;left:67%">15</li><li class="redr" style="top:67%;left:71%">13</li><!--  乡城--><li class="bluer" style="top:82%;left:70%">15</li><li class="redr" style="top:84%;left:73%">13</li><!--  得荣--><li class="bluer" style="top:68%;left:60%">15</li><li class="redr" style="top:70%;left:63%">13</li><!--  巴塘--><li class="bluer" style="top:71%;left:78%">15</li><li class="redr" style="top:74%;left:81%">13</li><!--  稻城--><li class="bluer" style="top:31%;left:57%">15</li><li class="redr" style="top:33%;left:53%">13</li><li class="bluer" style="top:44%;left:47%">15</li><li class="redr" style="top:48%;left:52%">13</li></ul></div></div>
<!--  map end--><!-- <div class="pmrboxbottom"><h2 class="tith2 pt1">涉稳警情</h2><div id="pmrboxbottom" class="pmrboxbottomcont" ></div></div> --><div class="mrbox_bottom_bott"><div class="rbottom_box1 hdwid"><h2 class="tith2">高危人员分类分析</h2><div id="prbottom_box2" class="prbottom_box1cont"></div></div><div class="rbottom_box2 hdwid"><h2 class="tith2">活动人口统计</h2><div id="pleftbox2midd" class="prbottom_box1cont" ></div></div></div></div><!-- mrbox_top_midd end --><div class="mrbox_top_right"><div class="hdrightboxtop"><h2 class="tith2">今日活动提醒</h2><div class="lefttoday_tit" style="height:4%"><p class="fl">状态:已调节</p><p class="fr">时间段:2018-06-10</p></div><div class="left2_table hdleft2_table"><ul><li><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li class="bg"><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li class="bg"><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li class="bg"><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li class="bg"><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li class="bg"><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li class="bg"><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li></ul></div></div><!-- <div class="mrbox_bottom"><div class="rbottom_box1"><h2 class="tith2">高危人员分类分析</h2><div id="prbottom_box2" class="prbottom_box1cont"></div></div><div class="rbottom_box2"><h2 class="tith2">活动人口统计</h2><div id="pleftbox2midd" class="prbottom_box1cont" ></div></div><div class="rbottom_box3"><h2 class="tith2 pt2">流动人口年龄分析</h2><div id="prbottom_box3" class="prbottom_box1cont"></div></div></div> -->
</div>
<script type="text/javascript">var myChart = echarts.init(document.getElementById('lpeftmidbot'));option = {backgroundColor: 'rgba(1,202,217,.2)',grid: {left:50,right:20,top:45,bottom:30},legend: {top:5,textStyle:{fontSize: 10,color:'rgba(255,255,255,.7)'},data:['男','女','总数']},// toolbox: {//     feature: {//         dataView: {show: true, readOnly: false},//         magicType: {show: true, type: ['line', 'bar']},//         restore: {show: true},//         saveAsImage: {show: true}//     }// },// legend: {//   top:10,//   left:10,//   textStyle:{//     fontSize: 10,//     color:'rgba(255,255,255,.7)'//   },//     data:['男','女','总数']// },xAxis: [{type: 'category',axisLine:{lineStyle:{color:'rgba(255,255,255,.2)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.1)'}},axisLabel:{color:"rgba(255,255,255,.7)"},data: ['1','2','3','4','5','6','7','8','9','10','11','12'],axisPointer: {type: 'shadow'}}],yAxis: [{type: 'value',name: '',min: 0,max: 250,interval: 50,axisLine:{lineStyle:{color:'rgba(255,255,255,.3)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.01)'}},axisLabel: {formatter: '{value}'}}],series: [{name:'男',type:'bar',itemStyle: {normal: {color:'#00a0e9'// color: new echarts.graphic.LinearGradient(//     0, 0, 0, 1,//     [//         {offset: 0, color: '#b266ff'},//         {offset: 1, color: '#121b87'}//     ]// )}},data:[2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3]},{name:'女',type:'bar',itemStyle: {normal: {color:'#fff799'// color: new echarts.graphic.LinearGradient(//     0, 0, 0, 1,//     [//         {offset: 0, color: '#00f0ff'},//         {offset: 1, color: '#032a72'}//     ]// )}},data:[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3]},{name:'总数',type:'bar',itemStyle: {normal: {color:'#6fcc8c'// color: new echarts.graphic.LinearGradient(//     0, 0, 0, 1,//     [//         {offset: 0, color: '#fffb34'},//         {offset: 1, color: '#032a72'}//     ]// )}},data:[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2]}]};myChart.setOption(option);</script><script type="text/javascript">var myChart = echarts.init(document.getElementById('lpeftbot'));option = {color:['#00b7ee','#f8e19a', '#f19ec2', '#5ebbeb', '#d16ad8','#f8e19a',  '#00b7ee', '#81dabe','#5fc5ce'],backgroundColor: 'rgba(1,202,217,.2)',grid: {left:20,right:20,top:0,bottom:20},legend: {top:10,textStyle:{fontSize: 10,color:'rgba(255,255,255,.7)'},data:['佛事活动','民俗活动','其他活动']},series : [{name: '访问来源',type: 'pie',radius : '55%',center: ['50%', '55%'],data:[{value:335, name:'佛事活动'},{value:310, name:'民俗活动'},{value:370, name:'其他活动'}],itemStyle: {emphasis: {shadowBlur: 10,shadowOffsetX: 0,shadowColor: 'rgba(0, 0, 0, 0.5)'}}}]};myChart.setOption(option);</script><script type="text/javascript">var myChart = echarts.init(document.getElementById('pleftbox2top'));option = {color:['#d2d17c','#00b7ee', '#5578cf', '#5ebbeb', '#d16ad8','#f8e19a',  '#00b7ee', '#81dabe','#5fc5ce'],backgroundColor: 'rgba(1,202,217,.2)',grid: {left:20,right:20,top:0,bottom:20},legend: {top:10,textStyle:{fontSize: 10,color:'rgba(255,255,255,.7)'},data:['藏族','回族','彝族','汉族','土家族']},series : [{name: '访问来源',type: 'pie',radius : '55%',center: ['50%', '55%'],data:[{value:335, name:'藏族'},{value:310, name:'回族'},{value:234, name:'彝族'},{value:135, name:'汉族'},{value:158, name:'土家族'}],itemStyle: {emphasis: {shadowBlur: 10,shadowOffsetX: 0,shadowColor: 'rgba(0, 0, 0, 0.5)'}}}]};myChart.setOption(option);</script><script type="text/javascript">var myChart = echarts.init(document.getElementById('pleftbox2midd'));option = {color:['#f8e19a','#00b7ee', '#5578cf', '#5ebbeb', '#d16ad8','#f8e19a',  '#00b7ee', '#81dabe','#5fc5ce'],backgroundColor: 'rgba(1,202,217,.2)',grid: {left:20,right:20,top:0,bottom:20},legend: {top:10,textStyle:{fontSize: 10,color:'rgba(255,255,255,.7)'},data:['常住人口','活动人口']},series : [{name: '访问来源',type: 'pie',radius : '55%',center: ['50%', '65%'],data:[{value:335, name:'常住人口'},{value:310, name:'活动人口'}],itemStyle: {emphasis: {shadowBlur: 10,shadowOffsetX: 0,shadowColor: 'rgba(0, 0, 0, 0.5)'}}}]};myChart.setOption(option);</script><script type="text/javascript">var myChart = echarts.init(document.getElementById('pmrboxbottom'));option = {color:['#d2d17c','#00b7ee', '#5578cf', '#5ebbeb', '#d16ad8','#f8e19a',  '#00b7ee', '#81dabe','#5fc5ce'],backgroundColor: 'rgba(1,202,217,.2)',legend: {top:10,textStyle:{fontSize: 10,color:'rgba(255,255,255,.7)'},data:['涉恐人员','涉稳人员','涉毒人员','在逃人员','重点上访人员','肇事肇祸精神病人','刑事犯罪前科人员']},grid: {left: 10,right: 10,top: 40,bottom: 10,containLabel: true},xAxis : [{type : 'category',axisLine:{lineStyle:{color:'rgba(255,255,255,.3)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.01)'}},data : ['康定市','泸定县','丹巴县','九龙县','新龙县','巴塘县','得荣县','理塘县','甘孜县','道孚县','德格县','色达县']}],yAxis : [{axisLine:{lineStyle:{color:'rgba(255,255,255,.3)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.01)'}},axisLabel: {formatter: '{value} ml'},type : 'value'}],series : [{name:'涉恐人员',type:'bar',barWidth :30,stack: '搜索引擎',data:[620, 732, 701, 734, 1090, 1130, 1120,620, 732, 701, 734, 1090,]},{name:'涉稳人员',type:'bar',stack: '搜索引擎',data:[120, 132, 101, 134, 290, 230, 220, 101, 134, 290, 230, 220]},{name:'涉毒人员',type:'bar',stack: '搜索引擎',data:[60, 72, 71, 74, 190, 130, 110, 71, 74, 190, 130, 110]},,{name:'在逃人员',type:'bar',stack: '搜索引擎',data:[120, 132, 101, 134, 290, 230, 220, 101, 134, 290, 230, 220]},{name:'重点上访人员',type:'bar',stack: '搜索引擎',data:[60, 72, 71, 74, 190, 130, 110, 71, 74, 190, 130, 110]},{name:'肇事肇祸精神病人',type:'bar',stack: '搜索引擎',data:[60, 72, 71, 74, 190, 130, 110, 71, 74, 190, 130, 110]},{name:'重大刑事犯罪前科人员',type:'bar',stack: '搜索引擎',data:[62, 82, 91, 84, 109, 110, 120, 91, 84, 109, 110, 120]}]};myChart.setOption(option);</script><script type="text/javascript">var myChart = echarts.init(document.getElementById('pleftbox2bott_cont'));option = {color:['#7ecef4'],backgroundColor: 'rgba(1,202,217,.2)',grid: {left:40,right:20,top:30,bottom:0,containLabel: true},xAxis: {type: 'value',axisLine:{lineStyle:{color:'rgba(255,255,255,0)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,0)'}},axisLabel:{color:"rgba(255,255,255,0)"},boundaryGap: [0, 0.01]},yAxis: {type: 'category',axisLine:{lineStyle:{color:'rgba(255,255,255,.5)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.1)'}},axisLabel:{color:"rgba(255,255,255,.5)"},data: ['务农','建筑工','技工','销售','职工']},series: [{name: '2011年',type: 'bar',barWidth :20,itemStyle: {normal: {color: new echarts.graphic.LinearGradient(1, 0, 0, 1,[{offset: 0, color: 'rgba(230,253,139,.7)'},{offset: 1, color: 'rgba(41,220,205,.7)'}])}},data: [18203, 23489, 29034, 104970, 131744]}]};myChart.setOption(option);</script><script type="text/javascript">var myChart = echarts.init(document.getElementById('prbottom_box1'));option = {color:['#d2d17c','#7fd7b1', '#5578cf', '#5ebbeb', '#d16ad8','#f8e19a',  '#00b7ee', '#81dabe','#5fc5ce'],backgroundColor: 'rgba(1,202,217,.2)',grid: {left:20,right:30,top:0,bottom:20},legend: {top: 5,textStyle:{fontSize:10,color:'rgba(255,255,255,.6)'},data:['男','女','总数']},grid: {left:20,right:30,top:40,bottom:10,containLabel: true},toolbox: {feature: {saveAsImage: {}}},xAxis: {type: 'category',boundaryGap: false,axisLine:{lineStyle:{color:'rgba(255,255,255,.2)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.1)'}},axisLabel:{color:"rgba(255,255,255,.7)"},data: ['0-6','6-18','18-28','28-55','55以上']},yAxis: {type: 'value',axisLine:{lineStyle:{color:'rgba(255,255,255,.2)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.1)'}},axisLabel:{color:"rgba(255,255,255,.7)"},},series: [{name:'男',type:'line',stack: '总量',areaStyle: {normal: {}},data:[120, 132, 101, 134, 90]},{name:'女',type:'line',stack: '总量',data:[220, 182, 191, 234, 290]},{name:'总数',type:'line',stack: '总量',data:[150, 232, 201, 154, 190]}]};myChart.setOption(option);</script><script type="text/javascript">var myChart = echarts.init(document.getElementById('prbottom_box2'));option = {backgroundColor: 'rgba(1,202,217,.2)',color:['#7ecef4','#7fd7b1'],grid: {left:30,right:20,top:20,bottom:40},xAxis: {axisLine:{lineStyle:{color:'rgba(255,255,255,.7)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.1)'}},data: ['涉恐','涉稳','涉毒','重点','肇事','重大']},yAxis: {axisLine:{lineStyle:{color:'rgba(255,255,255,.2)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.1)'}}},series: [{symbolSize: 20,data: [[0.0, 8.04],[2.0, 6.95],[3.0, 7.58],[5.0, 8.81],[0.4, 8.33],[4.0, 1.96],[0.3, 7.24],[4.6, 4.26],[2.0, 4.84],[2.0, 4.82],[5.0, 5.68]],type: 'scatter'}]};myChart.setOption(option);</script><script type="text/javascript">var myChart = echarts.init(document.getElementById('prbottom_box3'));option = {backgroundColor: 'rgba(1,202,217,.2)',grid: {left:60,right:20,top:40,bottom:40},toolbox: {feature: {dataView: {show: true, readOnly: false},magicType: {show: true, type: ['line', 'bar']},restore: {show: true},saveAsImage: {show: true}}},legend: {top:10,textStyle:{fontSize: 10,color:'rgba(255,255,255,.7)'},data:['男','女','总数']},xAxis: [{type: 'category',axisLine:{lineStyle:{color:'rgba(255,255,255,.2)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.1)'}},axisLabel:{color:"rgba(255,255,255,.7)"},data: ['0-6','6-18','18-28','28-55','55以上'],axisPointer: {type: 'shadow'}}],yAxis: [{type: 'value',name: '',min: 0,max: 250,interval: 50,axisLine:{lineStyle:{color:'rgba(255,255,255,.3)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.01)'}},axisLabel: {formatter: '{value} ml'}},{type: 'value',name: '',max: 25,interval: 5,axisLine:{lineStyle:{color:'rgba(255,255,255,0)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,0)'}}}],series: [{name:'男',type:'bar',itemStyle: {normal: {color: new echarts.graphic.LinearGradient(0, 0, 0, 1,[{offset: 0, color: '#b266ff'},{offset: 1, color: '#121b87'}])}},data:[2.0, 4.9, 7.0, 23.2, 25.6]},{name:'女',type:'bar',itemStyle: {normal: {color: new echarts.graphic.LinearGradient(0, 0, 0, 1,[{offset: 0, color: '#00f0ff'},{offset: 1, color: '#032a72'}])}},data:[8.6, 5.9, 9.0, 26.4, 28.7]},{name:'总数',type:'bar',itemStyle: {normal: {color: new echarts.graphic.LinearGradient(0, 0, 0, 1,[{offset: 0, color: '#fffb34'},{offset: 1, color: '#032a72'}])}},yAxisIndex: 1,data:[6.0, 5.2, 3.3, 4.5, 6.3]}]};myChart.setOption(option);</script><script type="text/javascript">var myChart = echarts.init(document.getElementById('pmrmidd'));option = {color:['#f1ff00','#00c1ff', '#61a0a8', '#d48265', '#91c7ae','#749f83',  '#ca8622', '#bda29a','#6e7074', '#546570', '#c4ccd3'],// backgroundColor: 'rgba(1,202,217,.2)',grid: {left:20,right:20,top:30,bottom:30},radar: {name: {textStyle: {fontSize: 10,color: 'rgba(255,255,255,.8)'}},splitLine: {lineStyle: {color: ['rgba(1,202,217,.01)', 'rgba(1,202,217,.01)'].reverse()}},splitArea: {show: false},axisLine: {lineStyle: {color: 'rgba(1,202,217,.7)'}},indicator: [{ name: '红色警情', max: 6500},{ name: '橙色警情', max: 16000},{ name: '黄色警情', max: 30000},{ name: '绿色警情', max: 44000}]},series: [{name: '',type: 'radar',radius : [5, 100],center: ['50%', '50%'],data : [{value : [4300, 10000, 28000, 19000],name : ''},{value : [5000, 14000,  22000, 41000],name : ''}]}]};myChart.setOption(option);</script></body>
</html>

效果图:

 analysis.html

<!doctype html>
<meta charset="utf-8">
<title>警情警力分析</title>
<link href="css/style.css"  rel="stylesheet" type="text/css" media="all" />
<script src="js/echarts.min.js" charset="utf-8"></script><body>
<div class="wpbox">
<div class="bnt"><div class="topbnt_left fl"><ul><li class="active"><a href="analysis.html">警情警力</a></li><li><a href="people.html">实有人口</a></li><li><a href="activity.html">活动情况</a></li></ul></div><h1 class="tith1 fl">舆情分析</h1><div class=" fr topbnt_right"><ul><li><a href="#">返回</a></li><li><a href="traffic.html">交通</a></li><li><a href="public.html">舆情</a></li></ul></div>
</div>
<!-- bnt end -->
<div class="left1"><div class="aleftboxttop"><h2 class="tith2">今日矛盾纠纷数据统计</h2><div class="lefttoday_tit" style=" height:8%"><p class="fl">地区:甘孜</p><p class="fr">2018-06-14</p></div><div class="lefttoday_number"><div class="widget-inline-box text-center fl"><p>矛盾纠纷</p><h3 class="ceeb1fd">54</h3><h4 class="text-muted pt6">环比<img src="img/iconup.png" height="16" />2%</h4></div><div class="widget-inline-box text-center fl"><p>已调节</p><h3 class="c24c9ff">54</h3><h4 class="text-muted pt6">环比<img src="img/icondown.png" height="16" />3%</h4></div><div class="widget-inline-box text-center fl"><p>未调节</p><h3 class="cffff00">4</h3><h4 class="text-muted pt6">环比<img src="img/icondown.png" height="16" />3%</h4></div><div class="widget-inline-box text-center fl"><p>处理中</p><h3 class="c11e2dd">4</h3><h4 class="text-muted pt6">环比<img src="img/icondown.png" height="16" />3%</h4></div></div><!-- lefttoday_number end --></div><div class="aleftboxtmidd"><h2 class="tith2">矛盾纠纷地区统计</h2><div class="lefttoday_tit height ht"><p class="fl">状态:已调节</p><p class="fr">时间段:2018-06-10 至 2018-06-14</p></div><div id="aleftboxtmidd" class="aleftboxtmiddcont"></div></div><div class="aleftboxtbott"><h2 class="tith2">矛盾纠纷类型统计</h2><div class="lefttoday_tit height"><p class="fl">状态:已调节</p><p class="fr">时间段:2018-06-10 至 2018-06-14</p></div><div id="aleftboxtbott" class="aleftboxtbott_cont" ></div>
</div>
</div>
<!--  left1 end -->
<div class="mrbox"><div class="mrbox_topmidd" style="width: 69%;"><div class="amiddboxttop"><h2 class="tith2 pt1">实时监控统计</h2><div class="amiddboxttop_map" style=""><span class="camera_l"  style=" top:34%;left:32%"></span><span class="camera_l" style=" top:10%;left:10%"></span><span class="camera_l" style=" top:5%;left:40%"></span><span class="camera_l" style=" top:10%;left:50%"></span><span style=" top:30%;left:75%"></span><span style=" top:5%;left:92%"></span><span style=" top:40%;left:83%"></span></div></div><!--  amiddboxttop end--><div class="amidd_bott"><div class="amiddboxtbott1 fl" ><h2 class="tith2 pt1">矛盾纠纷环比分析</h2><div id="amiddboxtbott1" class="amiddboxtbott1content" ></div></div><div class="amiddboxtbott2 fl"><h2 class="tith2 pt1">案件统计</h2><div id="amiddboxtbott2" class="amiddboxtbott2content"></div></div></div><!-- amidd_bott end --></div><!-- mrbox_top end --><div class="mrbox_top_right"><div class="arightboxtop"><h2 class="tith2">警力分析</h2><div class="lefttoday_tit"><p class="fl">状态:已调节</p><p class="fr">时间段:2018-06-10</p></div><div class="left2_table"><ul><li><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li class="bg"><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li class="bg"><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li class="bg"><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li><li class="bg"><p class="fl"><b>康定市公安局</b><br>村名王某因为被隔壁邻居的狗咬了,产生了纠纷,村名报警。<br></p><p class="fr pt17">2018-06-22</p></li></ul></div></div><div class="arightboxbott"><h2 class="tith2 ">矛盾纠纷七日数据分析</h2><div class="lefttoday_tit"><p class="fl">状态:已调节</p><p class="fr">时间:2018-06-14</p></div><div id="arightboxbott" class="arightboxbottcont" style=""></div></div></div><!-- mrbox_top_right end --></div></div>
</div><script type="text/javascript">var myChart = echarts.init(document.getElementById('aleftboxtmidd'));option = {color:['#76c4bf','#e5ffc7','#508097','#4d72d9'],backgroundColor: 'rgba(1,202,217,.2)',grid: {left:10,right:40,top:20,bottom:0,containLabel: true},// legend: {//     x : 'center',//     y : '70%',//     textStyle:{//       fontSize: 10,//       color:'rgba(255,255,255,.7)'//     },//     data:['康定市','丹巴县','甘孜县','理塘县']// },calculable : true,series : [{name:'面积模式',type:'pie',radius : [5, 60],center : ['50%', '55%'],roseType : 'area',data:[{value:10, name:'康定市'},{value:5, name:'丹巴县'},{value:15, name:'甘孜县'},{value:25, name:'理塘县'}]}]};myChart.setOption(option);</script><script type="text/javascript">var myChart = echarts.init(document.getElementById('aleftboxtbott'));option = {color:['#7ecef4'],backgroundColor: 'rgba(1,202,217,.2)',grid: {left:20,right:20,top:13,bottom:6,containLabel: true},xAxis: {type: 'value',axisLine:{lineStyle:{color:'rgba(255,255,255,.2)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,0)'}},axisLabel:{color:"rgba(255,255,255,0)"},boundaryGap: [0, 0.01]},yAxis: {type: 'category',axisLine:{lineStyle:{color:'rgba(255,255,255,.5)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.1)'}},axisLabel:{color:"rgba(255,255,255,.5)"},data: ['未调节','调节中','未调节']},series: [{name: '2011年',type: 'bar',barWidth :30,itemStyle: {normal: {color: new echarts.graphic.LinearGradient(1, 0, 0, 1,[{offset: 0, color: 'rgba(230,253,139,.7)'},{offset: 1, color: 'rgba(41,220,205,.7)'}])}},data: [18203, 23489, 29034]}]};myChart.setOption(option);</script><script type="text/javascript">var myChart = echarts.init(document.getElementById('amiddboxtbott1'));var data = [[[28604,77,17099,'Australia',1990],[31163,77.4,2440,'Canada',1990],[1516,68,1605773,'China',1990],[13670,74.7,10082,'Cuba',1990],[28599,75,49805,'Finland',1990],[29476,77.1,569499,'France',1990],[31476,75.4,789237,'Germany',1990],[28666,78.1,254830,'Iceland',1990],[1777,57.7,870776,'India',1990],[29550,79.1,129285,'Japan',1990],[2076,67.9,201954,'North Korea',1990],[12087,72,42954,'South Korea',1990],[24021,75.4,33934,'New Zealand',1990],[43296,76.8,4240375,'Norway',1990],[10088,70.8,381958,'Poland',1990],[19349,69.6,1475652,'Russia',1990],[10670,67.3,53905,'Turkey',1990],[26424,75.7,57117,'United Kingdom',1990],[37062,75.4,252810,'United States',1990]],[[44056,81.8,23973,'Australia',2015],[43294,81.7,35927,'Canada',2015],[13334,76.9,1376043,'China',2015],[21291,78.5,11562,'Cuba',2015],[38923,80.8,55057,'Finland',2015],[37599,81.9,64345,'France',2015],[44053,81.1,80545,'Germany',2015],[42182,82.8,329425,'Iceland',2015],[5903,66.8,1311027,'India',2015],[36162,83.5,126571,'Japan',2015],[1390,71.4,251317,'North Korea',2015],[34644,80.7,503439,'South Korea',2015],[34186,80.6,4528526,'New Zealand',2015],[64304,81.6,5210967,'Norway',2015],[24787,77.3,386194,'Poland',2015],[23038,73.13,143918,'Russia',2015],[19360,76.5,78630,'Turkey',2015],[38225,81.4,64715810,'United Kingdom',2015],[53354,79.1,321771,'United States',2015]]];option = {backgroundColor: 'rgba(1,202,217,.2)',grid: {left:40,right:40,top:50,bottom:40},title: {top: 5,left:20,textStyle:{fontSize:10,color:'rgba(255,255,255,.6)'},text: '环比类型:日环比'},legend: {right: 10,top: 5,textStyle:{fontSize:10,color:'rgba(255,255,255,.6)'},data: ['1990', '2015']},xAxis: {axisLine:{lineStyle:{color:'rgba(255,255,255,.2)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.1)'}},axisLabel:{color:"rgba(255,255,255,.7)"}},yAxis: {axisLine:{lineStyle:{color:'rgba(255,255,255,.2)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.1)'}},axisLabel:{color:"rgba(255,255,255,.7)"},scale: true},series: [{name: '1990',data: data[0],type: 'scatter',symbolSize: function (data) {return Math.sqrt(data[2]) / 5e2;},label: {emphasis: {show: true,formatter: function (param) {return param.data[3];},position: 'top'}},itemStyle: {normal: {shadowBlur: 10,shadowColor: 'rgba(120, 36, 50, 0.5)',shadowOffsetY: 5,color: new echarts.graphic.RadialGradient(0.4, 0.3, 1, [{offset: 0,color: 'rgb(251, 118, 123)'}, {offset: 1,color: 'rgb(204, 46, 72)'}])}}}, {name: '2015',data: data[1],type: 'scatter',symbolSize: function (data) {return Math.sqrt(data[2]) / 5e2;},label: {emphasis: {show: true,formatter: function (param) {return param.data[3];},position: 'top'}},itemStyle: {normal: {shadowBlur: 10,shadowColor: 'rgba(25, 100, 150, 0.5)',shadowOffsetY: 5,color: new echarts.graphic.RadialGradient(0.4, 0.3, 1, [{offset: 0,color: 'rgb(129, 227, 238)'}, {offset: 1,color: 'rgb(25, 183, 207)'}])}}}]};myChart.setOption(option);</script><script type="text/javascript">var myChart = echarts.init(document.getElementById('amiddboxtbott2'));option = {backgroundColor: 'rgba(1,202,217,.2)',grid: {left:60,right:60,top:50,bottom:40},toolbox: {feature: {dataView: {show: true, readOnly: false},magicType: {show: true, type: ['line', 'bar']},restore: {show: true},saveAsImage: {show: true}}},legend: {top:10,textStyle:{fontSize: 10,color:'rgba(255,255,255,.7)'},data:['2017年','2018年','同比增速']},xAxis: [{type: 'category',axisLine:{lineStyle:{color:'rgba(255,255,255,.2)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.1)'}},axisLabel:{color:"rgba(255,255,255,.7)"},data: ['1','2','3','4','5','6','7','8','9','10','11','12'],axisPointer: {type: 'shadow'}}],yAxis: [{type: 'value',name: '',min: 0,max: 250,interval: 50,axisLine:{lineStyle:{color:'rgba(255,255,255,.3)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.01)'}},axisLabel: {formatter: '{value} ml'}},{type: 'value',name: '',max: 25,interval: 5,axisLine:{lineStyle:{color:'rgba(255,255,255,.3)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.1)'}},axisLabel: {formatter: '{value} °C'}}],series: [{name:'2017年',type:'bar',itemStyle: {normal: {color: new echarts.graphic.LinearGradient(0, 0, 0, 1,[{offset: 0, color: '#b266ff'},{offset: 1, color: '#121b87'}])}},data:[2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3]},{name:'2018年',type:'bar',itemStyle: {normal: {color: new echarts.graphic.LinearGradient(0, 0, 0, 1,[{offset: 0, color: '#00f0ff'},{offset: 1, color: '#032a72'}])}},data:[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3]},{name:'同比增速',type:'line',itemStyle: {normal: {color: new echarts.graphic.LinearGradient(0, 0, 0, 1,[{offset: 0, color: '#fffb34'},{offset: 1, color: '#fffb34'}])}},yAxisIndex: 1,data:[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2]}]};myChart.setOption(option);</script><script type="text/javascript">var myChart = echarts.init(document.getElementById('arightboxbott'));option = {color:['#7de494','#7fd7b1', '#5578cf', '#5ebbeb', '#d16ad8','#f8e19a',  '#00b7ee', '#81dabe','#5fc5ce'],backgroundColor: 'rgba(1,202,217,.2)',grid: {left: '5%',right: '8%',bottom: '7%',top:'8%',containLabel: true},toolbox: {feature: {saveAsImage: {}}},xAxis: {type: 'category',boundaryGap: false,axisLine:{lineStyle:{color:'rgba(255,255,255,.2)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.1)'}},axisLabel:{color:"rgba(255,255,255,.7)"},data: ['6-08','6-09','6-10','6-11','6-12','6-13','6-14']},yAxis: {type: 'value',axisLine:{lineStyle:{color:'rgba(255,255,255,.2)'}},splitLine:{lineStyle:{color:'rgba(255,255,255,.1)'}},axisLabel:{color:"rgba(255,255,255,.7)"},},series: [{name:'2014年',type:'line',stack: '总量',areaStyle: {normal: {}},data:[120, 132, 101, 134, 90, 230, 210]}]};myChart.setOption(option);</script></body>
</html>

效果图:


 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/357448.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

spring rmi_Spring远程支持和开发RMI服务

spring rmiSpring远程支持简化了启用远程服务的开发。 当前&#xff0c;Spring支持以下远程技术&#xff1a;远程方法调用&#xff08;RMI&#xff09;&#xff0c;HTTP调用程序&#xff0c;Hessian&#xff0c;Burlap&#xff0c;JAX-RPC&#xff0c;JAX-WS和JMS。 远程方法调…

用Paint Tool SAI绘制漫画

漫画绘图软件 Paint Tool SAI是一个来自日本的小巧的漫画辅助绘图软件&#xff0c;只有11M大小。 这个没有任何现成的模板和组件&#xff0c;只能自己一笔一笔的话&#xff0c;画笔、图层等功能与Photoshop类似&#xff0c;但没有PS其它大量功能&#xff0c;因此操作更加便捷&a…

【ECharts系列|02可视化大屏】 舆情分析,人口分析及警情警力活动情况的实现【下篇】

简介&#xff1a;ECharts实现可视化大屏展示&#xff0c;包含人口分析&#xff0c;警情警力分析多张效果图&#xff0c; 完整的htmlcssjsimg:https://download.csdn.net/download/weixin_41937552/16361615 上一篇&#xff1a;【ECharts系列|02可视化大屏】 舆情分析&#xff0…

在WildFly上将JPA和CDI Bean与骆驼一起使用

我并没有真正为此计划&#xff0c;但是在一个免费的会议月份中&#xff0c;我有机会进行了一些深入的探讨&#xff0c;并向您展示了WildFly-Camel子系统提供的WildFly魔术上的更多Camel。 商业背景 该演示来自Christina Lin在JBoss Demo-Central上的演示 。 她演示了Camel中Fi…

C#开发微信公众平台-就这么简单(附Demo)(转)

原文&#xff1a;http://www.cnblogs.com/xishuai/p/3625859.html 写在前面 阅读目录&#xff1a; 服务号和订阅号URL配置创建菜单查询、删除菜单接受消息发送消息&#xff08;图文、菜单事件响应&#xff09;示例Demo下载后记最近公司在做微信开发&#xff0c;其实就是接口开发…

【ECharts系列|03可视化大屏】大数据管理平台实时展示

基于echats实现可视化大数据管理平台实时展示。 完整htmlcssjsjsonfontvideo:https://download.csdn.net/download/weixin_41937552/16362433 项目结构&#xff1a; index.html <!DOCTYPE html> <html lang"en"> <head><link href"css/Bi…

【ECharts系列|04可视化大屏】ECharts可视化经典案例总结

收集整理一些ECharts实现可视化大屏效果的一些经典案例&#xff0c;方便在工作的时候及时的响应客户&#xff0c;及修改展示&#xff0c;根据业务需求在此基础修改即可。 第一篇为Echarts入门文档&#xff0c;如果没有Echarts基础&#xff0c;理解起来比较费劲&#xff0c;这个…

云服务器带宽如何计算,云服务器怎么选择带宽

原标题&#xff1a;云服务器怎么选择带宽很多企业或站长在购买云服务器时&#xff0c;对带宽不是很了解。他们认为硬件配置高就行&#xff0c;访问速度就会快。其实访问快慢主要是带宽大小来决定&#xff0c;硬件主要是用来运算的&#xff0c;带宽是用来传输数据的。服务器处理…

spring aop实践_使用Spring AOP实现活动记录模式

spring aop实践在课堂设计过程中&#xff0c;我们应就每个班级的职责分配做出决定。 如果我们选择的不错&#xff0c;系统将更易于理解&#xff0c;维护和扩展。 我们几乎所有的项目都有一个持久层&#xff0c;即关系数据库&#xff0c;文档存储或仅XML文件。 通常&#xff0c;…

部署promethues采集kubelet数据报错:server returned HTTP status 403 Forbidden

背景 笔者尝试部署手动部署promethues去采集kubelet的node节点数据信息时报错 笔者的promethus的配置文件和promthues的clusterrole配置如下所示&#xff1a; apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata:name: prometheus rules: - apiGroups: […

2k16显示miui停止服务器,MIUI11停止内测,MIUI12真的来了,与小米MIX4同天发布,与ios13一样流畅丝滑...

原标题&#xff1a;MIUI11停止内测&#xff0c;MIUI12真的来了&#xff0c;与小米MIX4同天发布&#xff0c;与ios13一样流畅丝滑根据miui官方给出的最新公告&#xff0c;现在miui11最后一个开发版基本停止内测&#xff0c;并称“永远相信美好的事情即将发生”&#xff0c;可以确…

设计之路:如何进行软件需求分析?

1、需求分析的重要性 软件需求是指用户对目标软件系统在功能、行为、性能、设计约束等方面的期望。 通常&#xff0c;软件生存周期包括可行性分析与开发项计划、需求分析、设计&#xff08;概要设计和详细设计&#xff09;、编码、测试、维护等活动。 常用的三种软件生命周期&a…

wadl 生成java_在Spring MVC REST应用程序中自动生成WADL

wadl 生成java上一次我们学习了WADL的基础知识 。 语言本身并没有那么有趣&#xff0c;只写了一篇有关它的文章&#xff0c;但是本文的标题揭示了为什么我们需要这些知识。 JSR 311的许多实现&#xff1a;JAX-RS&#xff1a;RESTful Web服务的Java API提供了开箱即用的运行时WA…

安卓应用和ios应用下载地址生成一个统一二维码

前言&#xff1a;这个需要自己的应用已经上线到腾讯应用宝、APPStore.终极解决办法腾讯应用宝「微下载 」&#xff0c;是目前生成二合一APP推广二维码的最佳方式。原因如下1. 微信仅支持应用宝「微下载」&#xff0c;才能直接下载APP● 微信拥有11亿用户量&#xff0c;“扫一扫…

程序员应该如何才能买房?

前段时间对象问我应该在哪买房&#xff0c;我的意见是现在一个小的城市搞个刚需房&#xff0c;后面可以再换个一线的大房子&#xff0c;后来她的建议是在工作附近搞一套&#xff0c;这样不用一边工作一边还房贷。无奈只能咨询各位大咖。看完这个大佬的经历&#xff0c;发现好多…

小程序开发从0到1

公司最近也想做小程序&#xff0c;简单梳理了一下&#xff0c;希望能给新人带来一点启发。 话不多说&#xff0c;直接上干货。 不是码农也想开发的直接采用混合式开发的方案&#xff0c;查漏补缺&#xff0c;用模板肯定会有点生硬&#xff0c;想走的更远建议还是采用原生开发的…

javaScript入门基础说明

JavaScript 教程 JavaScript 是 Web 的编程语言。 所有现代的 HTML 页面都使用 JavaScript。 JavaScript 非常容易学&#xff0c;本教程将教你打开 JavaScript 的大门 浏览器中的 JavaScript 能做什么&#xff1f; 现代的 JavaScript 是一种“安全”语言。 它不提供对内存…

ActiveMQ作为Logstash的消息代理

扩展Logstash时&#xff0c;通常会添加一个消息代理&#xff0c;该消息代理用于在一个或多个Logstash节点处理传入消息之前临时缓冲传入的消息。 数据通过像Beaver这样的发运人推送到代理&#xff0c; Beaver读取日志文件并将每个事件发送到代理。 或者&#xff0c;应用程序可以…

在编译器中鼠标光标变成下横线的解决办法

适用于各种智能编译器&#xff0c;HB-X,VSCode,ST3,IDEA等。 问题&#xff1a; 按一下键盘上的&#xff0c;insert 键。

java自定义序列化_Java中的自定义国际化(i18n)

java自定义序列化国际化&#xff08;i18n&#xff09;在我们的软件项目中非常重要。 它主要带来以下好处&#xff1a; 将UI字符串外部化为代码文件以外的外部文件&#xff0c;以及易于管理的UI内容。 支持多种语言。 在这篇文章中&#xff0c;将为Eclipse和Java项目提供一个i…