JavaScript jqplot zoom function is not working

I want to visualize some timeseries data in the browser with jqplot. My problem is, that the x-axis values overlay and aren't readable.

Therefore, the zoom function would be very useful. But it doesn't work.

Please have a look at the fiddle, it doesn't run on firefox, just on google chrome:

http://jsbin.com/onufih/9/edit

Here's my code:

function getTicks() {

    var ticks = [];

    for (var i = 0; i < data.length; i++) {
        var item = data[i];
        var dateStr = item[0];
        ticks.push(dateStr);
    }

    return ticks;
}

var overviewChart = $.jqplot('overviewChart', [data], {
    title: 'Rotated Axis Text',
    axes: {
        xaxis: {
            renderer: $.jqplot.DateAxisRenderer,
            rendererOptions: {
                tickRenderer: $.jqplot.CanvasAxisTickRenderer
            },
            ticks: getTicks(),
            tickOptions: {

                formatString: '%#m/%#d/%y - %#H h - %#M m - %#S s',
                fontSize: '10pt',
                fontFamily: 'Tahoma',
                angle: -40
            }
        },
        yaxis: {
            rendererOptions: {
                tickRenderer: $.jqplot.CanvasAxisTickRenderer
            },
            tickOptions: {
                fontSize: '10pt',
                fontFamily: 'Tahoma',
                angle: 30
            }
        }
    },
    series: [{
        lineWidth: 4,
        markerOptions: {
            style: 'square'
        }
    }],
    cursor: {
        zoom: true,
        looseZoom: true
    }
});

}

Answer:1

You need to add show: true to your cursor, as in this example.

Answer:2

I want a hidden div on owl carousel. Please Help me . i am calling all css file from owl carousel . Here is my calling css file <link rel="stylesheet" href="<?php echo ...

I want a hidden div on owl carousel. Please Help me . i am calling all css file from owl carousel . Here is my calling css file <link rel="stylesheet" href="<?php echo ...

Does Angular sanitize all data when it gets rendered in the DOM automatically? ie, would this be safe: // using 'ngSanitize' angular.module('app', ['ngSanitize']); // somewhere in controller $http....

Does Angular sanitize all data when it gets rendered in the DOM automatically? ie, would this be safe: // using 'ngSanitize' angular.module('app', ['ngSanitize']); // somewhere in controller $http....

I'm trying to implement loading animation of chart using transition animations by adding rows and refreshing the chart. But it behaves completely differently from what I expect. Here is the Fiddle ...

I'm trying to implement loading animation of chart using transition animations by adding rows and refreshing the chart. But it behaves completely differently from what I expect. Here is the Fiddle ...

I'm a complete newbie in Phaser, and I've been having this problem for the last couple of days. Basically, I want my player to collide with the CollisionsLayer in my .json tilemap, but it doesn't work ...

I'm a complete newbie in Phaser, and I've been having this problem for the last couple of days. Basically, I want my player to collide with the CollisionsLayer in my .json tilemap, but it doesn't work ...