• 大小: 174KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-06-09
  • 语言: Java
  • 标签: ECharts  jar包  

资源简介

ECharts示例和jar包 ,里面有示例,有代码说明,标注很清楚,并且有页面代码。采用ajax的方式实现的。

资源截图

代码片段和文件信息

package cn.controller;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.swing.event.RowSorterEvent.Type;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONobject;
import com.github.abel533.echarts.Option;
import com.github.abel533.echarts.axis.Axis;
import com.github.abel533.echarts.axis.AxisLabel;
import com.github.abel533.echarts.axis.CategoryAxis;
import com.github.abel533.echarts.axis.ValueAxis;
import com.github.abel533.echarts.code.AxisType;
import com.github.abel533.echarts.code.LineType;
import com.github.abel533.echarts.code.Magic;
import com.github.abel533.echarts.code.MarkType;
import com.github.abel533.echarts.code.Orient;
import com.github.abel533.echarts.code.PointerType;
import com.github.abel533.echarts.code.Tool;
import com.github.abel533.echarts.code.Trigger;
import com.github.abel533.echarts.code.X;
import com.github.abel533.echarts.code.Y;
import com.github.abel533.echarts.data.PointData;
import com.github.abel533.echarts.feature.MagicType;
import com.github.abel533.echarts.json.GsonOption;
import com.github.abel533.echarts.series.Bar;
import com.github.abel533.echarts.style.Linestyle;

import cn.pojo.PeopleNum;
import cn.service.PeopleNumService;

@Controller
@RequestMapping(“/PeopleNum“)
public class PeopleNumController {

@Resource
private PeopleNumService objPeopleNumService;

@RequestMapping(value=“/showPagesPeople.do“)
public String showPagesPeople(){
System.out.println(“进入showPagesPeople方法...“);
return “peopleECharts“;
}
@RequestMapping(value=“/findPeopleNumAll.do“)
@ResponseBody
public object findPeopleNumAll(){
System.out.println(“进入findPeopleNumAll方法...“);
List list=objPeopleNumService.findPeopleNumAll();
System.out.println(JSON.toJSONString(list));
return list;
//return JSON.toJSONString(list);
}



//===============地图=========================================
@RequestMapping(value=“/showPeopleEChartsMap.do“)
public String showPeopleEChartsMap(){
System.out.println(“进入PeopleEChartsMap方法...“);
return “PeopleEChartsMap“;
}

//==============饼图====================================
@RequestMapping(value=“/showPagesCircle.do“)
public String showPagesCircle(){
System.out.println(“进入showPagesCircle方法...“);
return “Circle“;
}

@RequestMapping(value=“/findCircleAll.do“)
@ResponseBody
public object findCircleAll(){
System.out.println(“进入findCircleAll方法...“);
List list=objPeopleNumService.findPeopleNumAll();
System.out.println(JSON.toJSONString(list));
return list;
//return JSON.toJSONString(list);
}

@RequestMapping(value=“/findCircleAll2.do“)
@ResponseBody
public object 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3091  2017-12-15 14:30  ECharts\Circle.jsp

     文件     200085  2017-12-08 08:30  ECharts\ECharts-3.0.0.2.jar

     文件       9214  2017-12-15 16:45  ECharts\PeopleNumController.java

     文件        131  2017-12-22 15:28  ECharts\说明.txt

     目录          0  2017-12-22 15:28  ECharts

----------- ---------  ---------- -----  ----

               212521                    5


评论

共有 条评论