edisona / flot

Automatically exported from code.google.com/p/flot
MIT License
1 stars 0 forks source link

xaxis tick marks for time series isshe when over 24 hours. v0.8. #762

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Time series over 24 hours gives xaxis tick marks for 24 hours only - 

$(function() {

        var d = [[1366465055000, 315.71], [1366544996000, 317.45], [1366548515000, 317.50], [1366551175000, 315.86], [1366554395000, 314.93], [1366558395000, 313.19], [1366559195000, 313.34], [1366560775000, 314.67], [1366562855000, 315.58], [1366568956000, 316.47], [1366570776000, 316.65], [1366579676000, 317.71], [1366588395000, 318.29], [1366595234000, 318.16], [1366604434000, 316.55], [1366608394000, 314.80], [1366618135000, 313.84], [1366623336000, 313.34], [1366629936000, 314.81], [1366634996000, 315.59], [1366636296000, 316.43], [1366636716000, 316.97], [1366637656000, 317.58]]; 

        $.plot("#placeholder", [d], {
            xaxis: { mode: "time" }
        });

        // Add the Flot version string to the footer

        $("#footer").prepend("Flot " + $.plot.version + " – ");
    });

Original issue reported on code.google.com by rabmcg...@googlemail.com on 22 Apr 2013 at 3:31