Flot Charts:如何设置从comboBox到x轴显示的时间段?

时间:2017-04-18 13:31:51

标签: javascript php jquery flot

我有一个Flot图表,它显示y轴上的数量和x轴上的时间。我希望用户从组合框中选择x轴上显示的时间段。例如,comboBox1 = fromDate; comboBox2 = toDate;此时间段显示在图表的x轴上。

所以这是我的代码。到现在为止,我一直都有价值观。那么如何通过使用fromDate和toDate变量将其设置为使用句点?

希望有人可以帮助我。

   <script>
   var chartDataArray = [<?php echo $dataString ?>];
  </script>
            <script>
                $( document ).ready(function() {
                    $.plot($("#placeholder"), [ chartDataArray ], { xaxis: { mode: "time", timeformat: "%d/%m/%y"} });
                });



            </script>

0 个答案:

没有答案