資源簡介
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
- 上一篇:JSP應用框架外文翻譯
- 下一篇:java注冊表清理
評論
共有 條評論