jQuery Flot: 24 hour axis
问题 I'm using jQuery Flot plugin and I would like to have 24 hour x-axis. But how to accomplish that? I included necessary time plugin (jquery.flot.time.js) and tried something like this: xaxis: { mode: "time", timeformat: "%H", tickSize: [1, "day"], twelveHourClock: true } but nothing is showing up. What am I doing wrong? 回答1: You are looking for something like this: xaxis: { mode: "time", timeformat: "%I:%M %p", // HH:MM am/pm tickSize: [1, "hour"], // tick every hour twelveHourClock: true, min