V层:
index.html
src="http://www.kingceram.com/post/echarts.min.js">src="http://www.kingceram.com/post/jquery-3.1.1.min.js">>var myChart = echarts.init(document.getElementById('main'));$.ajax({/**********begin**********/url: "/Line_Chart",/**********end**********/success: function (data) {option = {title: {text: '各出租车平台年使用率'},tooltip: {trigger: 'axis'},legend: {data: ['A', 'B', 'C']},grid: {left: '3%',right: '4%',bottom: '3%',containLabel: true},toolbox: {feature: {saveAsImage: {}}},xAxis: {type: 'category',boundaryGap: false,/**********begin**********/data:data.timeList/**********end**********/},yAxis: {type: 'value'},/**********begin**********/series:data.resultData/**********end**********/};myChart.setOption(option);},dataType: "json",type: "post"});var myChart2 = echarts.init(document.getElementById('main2'));$.ajax({/**********begin**********/url:"/Radar_Chart",/**********end**********/success:function (data) {option = {title: {text: '各平台各服务数量'},tooltip: {},legend: {/**********begin**********/data:data.taxiPlatform/**********end**********/},radar: {name: {textStyle: {color: '#fff',backgroundColor: '#999',borderRadius: 3,padding: [3, 5]}},/**********begin**********/indicator:data.indicator/**********end**********/},series: [{type: 'radar',/**********begin**********/data:data.resultData/**********end**********/}]};myChart2.setOption(option);},dataType:"json",type:"post"});
C层:
:
【企业spark案例 —出租车轨迹分析】package net.educoder.app.controller;import net.educoder.app.entity.Chart_Line;import net.educoder.app.entity.Chart_Radar;import net.educoder.app.mapper.MainMapper;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.ResponseBody;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;@Controllerpublic class MainController {/**********begin**********/@AutowiredMainMapper mainMapper;@RequestMapping("/index")public String index() {return "index";}@RequestMapping("/Line_Chart")@ResponseBodypublic Map
- 今日头条-jsvmp-signature参数
- 2021-10-28企业级项目管理运作的方法与实践思考︱蓝云软件咨询顾问刘苗
- 火花监控:如何每天处理10B请求
- Grafna +Loki +Promtail GLP日志可视化企业级实战
- 戴尔 PowerProtect Cyber Recovery 有效提升企业数据安
- 数峰科技荣获智在人为2017年度浙商人工智能最具创新性企业称号
- K-近邻分类算法的python实现及案例分析
- 【Neo4j学习】应用案例
- 释放企业数字生产力,华为园区网络的“极简主义”
- 安卓逆向小案例——某短视频APP搜索+推荐接口【rpc调用】