欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

highcharts做的图突然不出图

程序员文章站 2022-05-19 23:00:12
...

跟ibm同事一起负责中行风险管理系统的开发,前几天做的图表突然不显示了

 

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="${webResRoot}/default/css/jquery.jOrgChart.css"/>
<script type="text/javascript" src="${webResRoot}/default/js/jquery/jquery-1.8.2.js">&#160;</script>
<script type="text/javascript" src="${webResRoot}/default/js/jquery.jOrgChart.js">&#160;</script>
<title>权重法</title>
<script>
jQuery(document).ready(function() {
    $("#org").jOrgChart({
        chartElement : '#chart',
        dragAndDrop  : false
    });
});
</script>
</head>
<body onload="prettyPrint();">
<ul id="org" style="display:none">
  <li><div class="chart_ablue">权重法</div>
   <ul>
    <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">风险权重</a></div>
     <ul>
      <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">资产的风险权重</a></div></li>
      <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">缓释品的风险权重</a></div></li>
     </ul>
    </li>
    <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">风险敞口</a></div>
     <ul>
      <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">债项风险敞口</a></div>
       <ul>
        <li><div class="chart_ablue">表内</div>
         <ul>
          <li><div class="chart_blue"><a href="####">账面金额</a></div>
           <ul>
            <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">信贷类</a></div></li>
            <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">债券类</a></div></li>
           </ul>
          </li>
          <li><div class="chart_blue"><a href="####">准备金</a></div></li>
         </ul>
        </li>
        <li><div class="chart_ablue">表外</div>
         <ul>
          <li><div class="chart_blue"><a href="####">余额</a></div></li>
          <li><div class="chart_blue"><a href="####">准备金</a></div></li>
          <li><div class="chart_blue"><a href="####">CCF</a></div></li>
         </ul>
        </li>
        <li><div class="chart_ablue">衍生品</div>
         <ul>
          <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">ADDON</a></div></li>
          <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">MTM</a></div></li>
         </ul>
        </li>
        <li><div class="chart_ablue">证券融资类</div>
         <ul>
          <li><div class="chart_ablue">交易账户</div>
           <ul>
            <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">风险暴露折扣系数He</a></div></li>
            <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">账面余额或债券价值</a></div></li>
           </ul>
          </li>
          <li><div class="chart_ablue">银行账户</div>
          <ul>
           <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">账面余额或债券价值</a></div></li>
          </ul>
          </li>
         </ul>
        </li>
        <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">支付结算过程中形成的证券/商品/外汇风险</a></div>
         <ul>
          <li><div class="chart_ablue">DVP模式</div>
           <ul>
            <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">合约结算价格</a></div></li>
            <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">当期市场价格</a></div></li>
           </ul>
          </li>
          <li><div class="chart_ablue">非DVP模式</div>
           <ul>
            <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">交易对手未支付部分</a></div></li>
            </ul>
          </li>
         </ul>
        </li>
       </ul>
      </li>
      <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">缓释品覆盖风险敞口</a></div>
       <ul>
        <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">C</a></div></li>
        <li><div class="chart_blue"><a href="####" title="时点:${nowTime} 数值:180000">账面金额/余额</a></div></li>
       </ul>
      </li>
     </ul>
     </li>
   </ul>
  </li>
 </ul>
</li>
</ul>
<div id="chart" class="orgChart"></div>
</body>
</html>


 

以上是正确的,我出错的原因在于我的网页是基于 xhtml的方式,他对格式要求很严格,比如<td></td>这样是不行的,

 

需要加上 &#160;才可以。