Map<String,Object> map = new HashMap<String, Object>();

        //图例的千人、双百
HashMap<String, String> para3 = new HashMap<String, String>();
para3.put("parentDictCode", DatabaseConstants.PZT_RCLX);
List<CmDict> cmDictList = cmDictService.getDictAllByTypeName(para3);
List<String> legend = new ArrayList<String>();
for(CmDict cmDict:cmDictList){
legend.add(cmDict.getDictName());
}
//y轴的数据
List<String> yEntScale = new ArrayList<String>();
List<String> yEntScaleCd = new ArrayList<String>();
List<HgPztParkInfo> parkInfoList = hgPztParkInfoService.getValidParkInfoList();
for(HgPztParkInfo pztParkInfo:parkInfoList){
yEntScale.add(pztParkInfo.getParkName());
} //查人才表里的人数
Map<String,Object> para = new HashMap<String, Object>();
List<TalentInfoVo> talentInduSeriesVoList = hgPztTalentInfoService.getTalentParkList(para);
Map<String,List<TalentInfoVo>> talentMap = new HashMap<String,List<TalentInfoVo>>();
List<InduDevelopVo> seriesVoSBList = new ArrayList<InduDevelopVo>();
for(TalentInfoVo vo : talentInduSeriesVoList){
if(talentMap.containsKey(vo.getDictName())){//去重复
List<TalentInfoVo> tempList = talentMap.get(vo.getDictName());
tempList.add(vo);
}else{
List<TalentInfoVo> tempList = new ArrayList<TalentInfoVo>();
tempList.add(vo);
talentMap.put(vo.getDictName(),tempList);
}
} for (Map.Entry<String, List<TalentInfoVo>> entry : talentMap.entrySet()) {
Map<String, String> map1 = new HashMap<String, String>();
for (TalentInfoVo vo : entry.getValue()) { map1.put(vo.getParkName(), vo.getCount().toString());//园区对应数据
}
List<String> valueList = new ArrayList<String>();
for (String vo : yEntScale) {//人数的值 if (map1.containsKey(vo)) {
valueList.add(map1.get(vo));
} else {
valueList.add("0");
}
}
seriesVoSBList.add(new InduDevelopVo(entry.getKey(), valueList));//软件园对应值
} map.put("yEntScale", yEntScale);//软件园名字
map.put("talentParkLegendJson", legend);
map.put("talentParkSeriesSBJson", seriesVoSBList);

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAe0AAAFQCAIAAAAdgrEHAAAT3UlEQ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DL/ofdGetJx8+5/NjJ/oBIdRw0/zMyMD/3bxZeCrgt+8aXgy3f2d/jfyeq5mZmZd47814uvvt51wV989fV/Pfzb8n8nC2gQHQcA3eg4AOhGxwFANzoOALrRcQDQjY4DgG50HAB0o+MAoBsdBwDd6DgA6EbHAUA3Og4AutFxANCNjgOAbnQcAHSj4wCgGx0HAN3oOADoRscBQDc6DgC60XEA0O3/AX1eVNxYM7cHAAAAAElFTkSuQmCC" alt="" />

 $.getJSON('/pzt/personView/talentPark.html', function (data) {
if (data.success4) {
talentParkChar.showLoading({text: '正在努力的读取数据中...'});
talentParkChar.setOption({
legend: {data: data.talentParkLegendJson},
yAxis: {data: data.yEntScale},
series:convertBarDate(data.talentParkSeriesSBJson)
});
talentParkChar.hideLoading();
} else {
alert('提示', data.msg);
}
});
function convertBarDate(lineDataList) {
var lineList = [];
for (var i = 0; i < lineDataList.length; i++) {
var item = lineDataList[i];
var value = {};
value.name = item.name;
value.type = 'bar';
//value.xAxisIndex = 1;
value.label = {normal: {show: true, position: 'top'}},
value.barWidth = '30'; value.stack = 'group1',
value.data = item.value;
lineList.push(value);
}
return lineList;
}

柱状堆积图Echarts的更多相关文章

  1. java项目使用Echarts 做柱状堆叠图,包含点击事件

    基础知识请自行百度查看,以下直接贴出实现代码: <%@ page pageEncoding="UTF-8"%><!DOCTYPE html><html ...

  2. ajax实现highchart与数据库数据结合完整案例分析(三)---柱状折线图

    作者原创,未经博主允许,不可转载 在前面分析和讲解了用java代码分别实现饼状图和折线图,在工作当中,也会遇到很多用ajax进行异步请求 实现highchart. 先展示一下实现的效果图: 用ajax ...

  3. highchart柱状堆叠图动态数据请求

    $(function () { var options = { chart: { renderTo: 'indoor', type: 'column', }, title: { text: '室内问题 ...

  4. echarts如何做出堆积图总计的效果

    首先说下,我这这数据是假数据,实际是公司做图的一部分数据自己修改了下下,不涉及泄密什么的. 第一.echarts本身是没有这个在柱子上面加total的这点大家默认下就好了,因为我不是什么前端专职程序员 ...

  5. ECharts图表之柱状折线混合图

    Echarts 官网主页  http://echarts.baidu.com/index.html Echarts 更多项目案例  http://echarts.baidu.com/echarts2/ ...

  6. 用echartsjs 实现动态绘制折线、柱状等图形,并实现多图联动效果

    echarts对于大数据处理后绘制折线图,柱形图等等的效果和速度都很好.下面我们介绍 怎么把封装的数据列表解析出来,动态绘图,并且实现鼠标联动效果引入js文件: <script type=&qu ...

  7. Echarts-画柱状,折线图

    导入echarts包 <script src='../scripts/libraries/echarts/echarts-all.js'></script> 堆积图js var ...

  8. 使用WinForm Chart控件 制作饼装,柱状,折线图

    http://blog.csdn.net/dream2050csdn/article/details/53510340 chart控件的属性很多,主要用到Chart控件图表区域的属性有五个属性 1.A ...

  9. 【Excel】绘图案例_常见复合图:簇状图+堆积图+折线图

    前言 最近有朋友让我帮忙用excel画图,老实说我很讨厌用excel画图,点来点去,复杂一些还不能复用,非常繁琐.当然,入门也很简单.需求时不同城市.不同产品的2016和2017销量及环比数据,这应该 ...

随机推荐

  1. MVC 基架不支持 Entity Framework 6 或更高版本

    MVC 基架不支持 Entity Framework 6 或更高版本.有关详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=276833. PS:新做一个 ...

  2. 【caffe】cifar10例子之quick_train.sh在windows下的解决方案

    @tags caffe 照例还是转写为python脚本: import os caffe_root=os.environ['caffe_root'] caffe_build=os.environ['c ...

  3. 【BZOJ-3895】取石子 记忆化搜索 + 博弈

    3895: 取石子 Time Limit: 1 Sec  Memory Limit: 512 MBSubmit: 263  Solved: 127[Submit][Status][Discuss] D ...

  4. namespace std

    c++中使用namespace来防止命名冲突(重命名),我们经常使用的一些函数和变量都被放在一个叫std的namespace中,如标准I/O流操作,vector等等.我们在每一个文件中都可使用std中 ...

  5. Android Material Design 学习笔记 - Matrial Theme

    google在2014年 I/O大会上推出了一种新的设计设计语言—Material design,这种设计语言语言旨在为手机.平板电脑.台式机和“其他平台”提供更一致.更广泛的“外观和感觉”(附上官方 ...

  6. poj 1269 线段相交/平行

    模板题 注意原题中说的线段其实要当成没有端点的直线.被坑了= = #include <cmath> #include <cstdio> #include <iostrea ...

  7. [NOIP2014] 提高组 洛谷P1941 飞扬的小鸟

    题目描述 Flappy Bird 是一款风靡一时的休闲手机游戏.玩家需要不断控制点击手机屏幕的频率来调节小鸟的飞行高度,让小鸟顺利通过画面右方的管道缝隙.如果小鸟一不小心撞到了水管或者掉在地上的话,便 ...

  8. 关于当一个C#工程移植到另一台机子上(win7)上时,程序报错。dll没有被指定在Windows上运行,或者它包含错误。请尝试使用原始安装媒体重新安装程序。。。。。。

    , 解决方法:通过从网上重新下载dll文件 拷贝到报错的目录下,替换掉原有的dll,可以正确运行.

  9. vi命令大全

    参考 http://www.cnblogs.com/88999660/articles/1581524.html 最近要用到linux和shell脚本,所以多学习下,反正没什么坏处 在linux里面, ...

  10. RabbitMQ代码第一步

    Hello RabbitMQ 终于到了使用.Net连接RabbitMQ的时候了,我们首先新建一个控制台应用程序,在程序包管理控制器中NuGet中下载 RabbitMQ. Install-Package ...