Highstock Chrome/Firefox/Opera

Posted by Matthias on Stack Overflow See other posts from Stack Overflow or by Matthias
Published on 2012-04-11T17:26:46Z Indexed on 2012/04/11 17:28 UTC
Read the original article Hit count: 274

Filed under:
|
|

Is there any particular reason that this HighStock chart:

var chart;

$(function() {
        chart = new Highcharts.StockChart({
            chart: {
                renderTo: 'container'
            },
            title: {

                text: 'Total balance over time'
            },
            xAxis: {
                type: 'datetime',
                maxZoom: 7 * 24 * 3600000, // one week
                title: {
                    text: null
               }
            },
            yAxis: {
                title: {
                    text: 'Balance'
                },

                startOnTick: false,
                showFirstLabel: false
            },
            tooltip: {
                shared: true
            },
            series: [{
                type: 'area',
                name: 'Account balance',
                pointInterval: 14 * 3600 * 1000,
                pointStart: Date.UTC(2012, 3, 11),
                data: [

                    0.7809, 0.7827, 0.7848, 0.785, 0.7873, 0.7894, 0.7907, 0.7909, 0.7947, 0.7987,

                    0.799, 0.7927, 0.79, 0.7878, 0.7878, 0.7907, 0.7922, 0.7937, 0.786, 0.787,

                    0.7838, 0.7838, 0.7837, 0.7836, 0.7806, 0.7825, 0.7798, 0.777, 0.777, 0.7772,

                    0.7793, 0.7788, 0.7785, 0.7832, 0.7865, 0.7865, 0.7853, 0.7847, 0.7809, 0.778,

                    0.7799, 0.78, 0.7801, 0.7765, 0.7785, 0.7811, 0.782, 0.7835, 0.7845, 0.7844,

                    0.782, 0.7811, 0.7795, 0.7794, 0.7806, 0.7794, 0.7794, 0.7778, 0.7793, 0.7808,

                    0.7824, 0.787, 0.7894, 0.7893, 0.7882, 0.7871, 0.7882, 0.7871, 0.7878, 0.79,

                    0.7901, 0.7898, 0.7879, 0.7886, 0.7858, 0.7814, 0.7825, 0.7826, 0.7826, 0.786,

                    0.7878, 0.7868, 0.7883, 0.7893, 0.7892, 0.7876, 0.785, 0.787, 0.7873, 0.7901,

                    0.7936, 0.7939, 0.7938, 0.7956, 0.7975, 0.7978, 0.7972, 0.7995, 0.7995

                ]
            }]
        });
    });

is rendered without any problems in Opera, but not working in Chrome or Firefox? I'm also using some HighChart pie charts. Those are rendered without any issues on all browsers. All of the demos on the HighStock Demo Gallery are working without problems.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about browser