亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

我如何使用 highchart 在 jsp 中的 spring mvc 中繪制圖形

我如何使用 highchart 在 jsp 中的 spring mvc 中繪制圖形

白衣非少年 2023-07-28 09:52:50
我想在jsp unsando spring mvc和highchart中繪制圖形,但我仍然做不到,我等待你的答復謝謝我的觀點,這是我想繪制圖表的地方,但圖表沒有顯示,它什么也沒顯示<%@ 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貢獻1854條經驗 獲得超8個贊

您正在嘗試繪制一個在傳遞列表 ${listGraph} 時需要整數值的餅圖。

????????????????????series:?[{?
????????????????????????name:?'Regions',
????????????????????????colorByPoint:true,
????????????????????????data:?[{
????????????????????????????name:?'Northeast',
????????????????????????????y:?[[${listGraph}]]
????????????????????????}??????????????????????
????????????????????????]


查看完整回答
反對 回復 2023-07-28
  • 1 回答
  • 0 關注
  • 143 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號