溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

JQplot 學(xué)習(xí)畫線性圖一

發(fā)布時(shí)間:2020-06-26 21:05:14 來源:網(wǎng)絡(luò) 閱讀:590 作者:xiangsuixinshen 欄目:web開發(fā)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標(biāo)題文檔</title>
 <link rel="stylesheet" type="text/css" href="../jquery.jqplot.css" />
  <link rel="stylesheet" type="text/css" href="examples.css" />
  <!--[if lt IE 9]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]-->
 
  <!-- BEGIN: load jquery -->
  <script language="javascript" type="text/javascript" src="../jquery-1.5.1.min.js"></script>

  <!-- END: load jquery -->
 
  <!-- BEGIN: load jqplot -->
  <script language="javascript" type="text/javascript" src="../jquery.jqplot.js"></script>
 <script language="javascript" type="text/javascript" src="../plugins/jqplot.logAxisRenderer.js"></script>
 <script language="javascript" type="text/javascript" src="../plugins/jqplot.canvasTextRenderer.js"></script>
 <script language="javascript" type="text/javascript" src="../plugins/jqplot.canvasAxisLabelRenderer.js"></script>
 <script language="javascript" type="text/javascript" src="../plugins/jqplot.canvasAxisTickRenderer.js"></script>
 <script language="javascript" type="text/javascript" src="../plugins/jqplot.dateAxisRenderer.js"></script>
 <script language="javascript" type="text/javascript" src="../plugins/jqplot.categoryAxisRenderer.js"></script>
 <script language="javascript" type="text/javascript" src="../plugins/jqplot.barRenderer.js"></script>
 
 <style type="text/css">
   .jqplot-point-label {white-space: nowrap;}
      .jqplot { margin: 70px;}
 </style>
 
 <script type="text/javascript" language="javascript">
  $(document).ready(function(){
  //把線附加在div的id為chartdiv上, 后面接的是描點(diǎn)坐標(biāo)
  $.jqplot('chartdiv',[[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]],
     {title:'my first demol',//圖片的標(biāo)題
      axes:{yaxis:{renderer: $.jqplot.LogAxisRenderer}},//是否要渲染圖形
      series:[{color:'green'}] //給線加顏色
     }
    );
  });
</script>

</head>
<body>  
 <div id="chartdiv" style="height:400px;width:300px; "></div>
</body>
</html>

附件:http://down.51cto.com/data/2360272
向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI