小编use*_*380的帖子

Highcharts不与firefox兼容

我已经构建了一个从mysql数据库获取数据并使用Highcharts显示它们的网站.问题是在Chrome和Opera中图表工作正常但在Firefox中我无法获得图表上的值的打印!这就是我用Crome和Opera获得的...... 这是我用chrome和opera得到的

这就是我用firefox获得的.... 在此输入图像描述

我想,问题可能出在PHP脚本,从数据库或不获取数据..我真的无法理解为什么会出现这种情况..下面我提供一个图表中创建代码和PHP脚本,获取数据....

必要的图书馆:

 <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
 <script src="http://code.highcharts.com/highcharts.js"></script>
 <script src="http://code.highcharts.com/modules/exporting.js"></script>
 <script src="http://code.highcharts.com/themes/gray.js"></script>
Run Code Online (Sandbox Code Playgroud)

高图创作代码:

 <script type="text/javascript">
var chart;
        $(document).ready(function() {
            var options = {
                chart: {
                    renderTo: 'container1',
                    defaultSeriesType: 'area',
                    marginRight: 10,
                    marginBottom: 25,
                    zoomType: 'xy'  //zoom
                },
                 credits: {
                    enabled: false
                            },

                title: {
                    text: 'Temperature',
                    x: -20 //center
                },
                subtitle: {
                    text: '',
                    x: -20
                },
                xAxis: {
                    type: 'datetime',                       
                    //tickInterval:  4 * 24 * 3600 * 1000 , // one hour
                     //minRange: 14 * 24 * 3600000, …
Run Code Online (Sandbox Code Playgroud)

html javascript php highcharts

2
推荐指数
1
解决办法
3584
查看次数

标签 统计

highcharts ×1

html ×1

javascript ×1

php ×1