I am using the Flot jQuery plugin to render graphs on my website. It works great in recent versions of Chrome, but doesn't seem to work in Firefox and Internet Explorer. I am using version 21 of Firefox and 10 of Internet Explorer. Here is the relevant code:
$(document).ready(function() { var currentURL = window.location; // This will hold our plot data var playersPlots = []; var pingPlots = []; // Make an AJAX request to get the server stats $.get(currentURL + '/stats.json', function(data) { $.each(data.stats, function(index, value) { playersPlots.push([new Date(value.ServerStat.created).getTime(), value.ServerStat.players]); pingPlots.push([new Date(value.ServerStat.created).getTime(), value.ServerStat.ping]); }); $.plot($('#server-stats'), [{label: 'Players', data: playersPlots}, {label: 'Ping (ms)', data: pingPlots}], { xaxis: { mode: 'time', timeformat: '%I:%M', 'tickSize': [3, "hour"] } }); }, 'json'); });
Graphs are displayed as follows (correctly) in Chrome:

But, as in Firefox and Internet Explorer:

Has anyone encountered this problem before and knows the reason?
It's also worth mentioning that there are no console errors in Firefox or IE, and they both make an AJAX request and return the correct data, which I confirmed by looking at the network tab of the developer tools.
Edit: Itβs also worth saying that if I rigidly set these values:
$.plot($('#server-stats'), [{label: 'Players', data: [[10, 10], [20, 20]]}, {label: 'Ping (ms)', data: [[30, 30], [40, 40]]}], {
It works in Firefox, IE and Chrome.