Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery jqplot折线图中的错误_Jquery_Jquery Mobile_Jqplot - Fatal编程技术网

Jquery jqplot折线图中的错误

Jquery jqplot折线图中的错误,jquery,jquery-mobile,jqplot,Jquery,Jquery Mobile,Jqplot,我有这段代码。我不知道为什么没有显示图表。控制台显示正在绘制图表,但我无法显示。 我相信我已经添加了容器,但不知道哪里出了问题。控制台没有显示任何错误 <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jque

我有这段代码。我不知道为什么没有显示图表。控制台显示正在绘制图表,但我无法显示。 我相信我已经添加了容器,但不知道哪里出了问题。控制台没有显示任何错误

<!DOCTYPE html>
 <html>
 <head>
 <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile- 

 1.4.2.min.css">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>




</head>
<body>

<div data-role="tabs">
  <div data-role="navbar">
    <ul>
      <li><a href="#one" data-theme="a" data-ajax="false">Price Grid</a></li>
      <li><a href="#two" data-theme="a" data-ajax="false">Price Chart</a></li>

    </ul>
</div>


    <div id="one" class="ui-content">

    <style>
         table,th,td
           {
             border:1px solid black;

           }
           th
             {
              background-color:green;
              color:white;
             }
       </style>



       <table id="myTable">


       </table>



    </div>

 <div id="two" style="height:400px;width:300px; "></div>

  <script language="javascript" type="text/javascript" src="../js/jqplot/jquery.min.js">

     </script>
 <script language="javascript" type="text/javascript" 
      src="../js/jqplot/jquery.jqplot.min.js"></script>

<link rel="stylesheet" type="text/css" href="../js/jqplot/jquery.jqplot.css" />

  <script type="text/javascript">

  $(function(){

  $.jqplot('two', [[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]]);

 });
</script>



</div>




    </body>
  </html>

表,th,td { 边框:1px纯黑; } th { 背景颜色:绿色; 颜色:白色; } $(函数(){ $.jqplot('two',[[1,2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11219.9]); });
首先包括血腥的框架,当链接不正确时,您希望它如何工作。 第二组显示:块!重要的到您的div容器#two

工作示例:

表,th,td { 边框:1px纯黑; } th { 背景颜色:绿色; 颜色:白色; } #两个{ 高度:400px; 宽度:300px; 显示:块!重要; } $(函数(){ $.jqplot('two',[[1,2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11219.9]); });
<!DOCTYPE html>
 <html>
 <head>
 <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
</head>
<body>

<div data-role="tabs">
  <div data-role="navbar">
    <ul>
      <li><a href="#one" data-theme="a" data-ajax="false">Price Grid</a></li>
      <li><a href="#two" data-theme="a" data-ajax="false">Price Chart</a></li>

    </ul>
</div>

    <div id="one" class="ui-content">

    <style>
         table,th,td
           {
             border:1px solid black;

           }
           th
             {
              background-color:green;
              color:white;
             }
             
             #two {
                height:400px;
                width:300px;
                display: block !important; 
             }
       </style>



       <table id="myTable">


       </table>



    </div>

 <div id="two" style=""></div>

  <script language="javascript" type="text/javascript" src="http://www.jqplot.com/src/jquery.min.js"></script>
  <script language="javascript" type="text/javascript" src="http://www.jqplot.com/src/jquery.jqplot.min.js"></script>
  <link rel="stylesheet" type="text/css" href="http://www.jqplot.com/src/jquery.jqplot.min.css" />

  <script type="text/javascript">

  $(function(){

  $.jqplot('two', [[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]]);

 });
</script>



</div>




    </body>
  </html>