java-echart.js柱状图、饼状图、折线图

时间:2020-01-24 11:33:41
【文件属性】:

文件名称:java-echart.js柱状图、饼状图、折线图

文件大小:54.86MB

文件格式:RAR

更新时间:2020-01-24 11:33:41

echart.j

java-echart.js柱状图、饼状图、折线图 /** * 柱状图 * @param classRoom * @param req * @param resp * @param model * @return */ @RequestMapping(value = "/zhuzhuangtu") public String zhuzhuangtu(ClassRoom classRoom ,HttpServletRequest req,HttpServletResponse resp,Model model){ List> maps = new ArrayList>(); Map map = new HashMap<>(); map.put("name", "山东"); map.put("value", 200); map.put("id", 1); Map map1 = new HashMap<>(); map1.put("name", "江苏"); map1.put("value", 400); map1.put("id", 2); Map map2 = new HashMap<>(); map2.put("name", "北京"); map2.put("value", 400); map2.put("id", 3); Map map3 = new HashMap<>(); map3.put("name", "上海"); map3.put("value", 150); map3.put("id", 4); maps.add(map); maps.add(map1); maps.add(map2); maps.add(map3); model.addAttribute("maps", maps); return "manage/zhuzhuangtu"; }


网友评论