我想在jsp unsando spring mvc和highchart中繪制圖形,但我仍然做不到,我等待你的答復(fù)謝謝我的觀點(diǎn),這是我想繪制圖表的地方,但圖表沒(méi)有顯示,它什么也沒(méi)顯示<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%><%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><!DOCTYPE html><html> <head> <title>Chart</title> <script src="resources/assets/js/highcharts.js"></script> <script src="resources/assets/js/highcharts-3d.js"></script><!-- <script src="resources/assets/js/jquery.js"></script> --> <script src="https://code.jquery.com/jquery-3.2.1.js"></script> </head> <body class="page-container-bg-solid"> <div class="page-container"> <div class="page-content-wrapper"> <div class="page-head" style="background-color:#eff3f8;padding-top:40px"> <div class="container"> <div class="row" style="margin-bottom:30px"> <div class="col-md-6"> <h1>my Chart</h1> </div> </div> <div class="row" style="margin-bottom:30px"> <div class="col-md-6" style="margin-top:20px"> <div id="mychart" style="width:100%; height:400px;"></div> </div> </div> </div> </div> </div> </div> <script type="text/javascript"> $(function () { Highcharts.setOptions({ global: { useUTC: false } }); drawSalesByTypeChart(); drawSalesByRegionChart(); });
1 回答

嗶嗶one
TA貢獻(xiàn)1854條經(jīng)驗(yàn) 獲得超8個(gè)贊
您正在嘗試?yán)L制一個(gè)在傳遞列表 ${listGraph} 時(shí)需要整數(shù)值的餅圖。
????????????????????series:?[{? ????????????????????????name:?'Regions', ????????????????????????colorByPoint:true, ????????????????????????data:?[{ ????????????????????????????name:?'Northeast', ????????????????????????????y:?[[${listGraph}]] ????????????????????????}?????????????????????? ????????????????????????]
添加回答
舉報(bào)
0/150
提交
取消