Javascript xaxis时不显示flot图

Javascript xaxis时不显示flot图,javascript,php,flot,Javascript,Php,Flot,当我试图输出一个图形时,我得到一个空白屏幕 当我删除xaxis和yaxis选项时工作。。。不知道该怎么办 <script type="text/javascript"> //Chart1 var chart1Options = { series: { lines: { show: true }, color: "#fff", points: { show: true } }, val

当我试图输出一个图形时,我得到一个空白屏幕

当我删除xaxis和yaxis选项时工作。。。不知道该怎么办

<script type="text/javascript">
    //Chart1
    var chart1Options = {
      series: {
        lines: { show: true },
        color: "#fff",
        points: { show: true }
      },
       valueLabels: { show: true },
        grid: {
          backgroundColor: { colors: ["#4ca8fa", "#2887da"] },
          bordercolor: "#fff",
          borderwidth: "60",
          hoverable: true //IMPORTANT! this is needed for tooltip to work
    },
    xaxis: { mode: "time",  timeformat: "%y/%m/%d", axisLabel: 'Date' },
    yaxis: { axisLabel: 'Result'}
    }; var dataset1 = { label: "result", data: <?php echo json_encode($dataset1); ?>,};

    $.plot($("#chart1"), [ dataset1 ], chart1Options);
</script>

//图表1
变量图表1选项={
系列:{
行:{show:true},
颜色:“fff”,
要点:{show:true}
},
valueLabels:{show:true},
网格:{
背景颜色:{colors:[“#4ca8fa”,“#2887da”]},
边框颜色:“fff”,
边框宽度:“60”,
可悬停:true//重要!这是工具提示工作所必需的
},
xaxis:{mode:“time”,timeformat:“%y/%m/%d”,axisLabel:“Date'},
yaxis:{axisLabel:'Result'}
}; var数据集1={标签:“结果”,数据:,};
$.plot($(“#图表1”),[dataset1],图表1选项);

感谢您的帮助。

您好,在这一行附近,您缺少结束php标记<代码>**数据:错误控制台上是否有任何输出?是否正在加载
jquery.flot.time.js