[ASP.net教程]ECharts Java 动态加载数据,echartsjava
0 2015-12-18 00:00:05
1、前台jsp页面html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
ECharts2、后台JSON数据protected void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {String[] categories = {"鞋", "衬衫", "外套", "牛仔裤"};Integer[] values = {80, 50, 75, 100};Map json = new HashMap();json.put("categories", categories);json.put("values", values);JsonUtils.writeJson(json, request, response);}
3、最终实现效果
ECharts首页:http://echarts.baidu.com/
ECharts Java 类库:http://git.oschina.net/free/ECharts
获取【下载地址】
本文网址:http://www.shaoqun.com/a/169962.html
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:admin@shaoqun.com。
JAVA
0