Just convert your timestamps to hours, for example like this:

$.each(d, function (index, datapoint) {
    datapoint[0] = (new Date(datapoint[0])).getHours();
});


(If you want values with AM / PM change accordingly.)
And of course remove the mode: "time" from your options.

See this fiddle for the changed code.  

FlotChart - Showing the distribution on hourly basis regardless of timestamp
The following code seems to be running when it shouldn't. In this example:

#include &lt;iostream&gt;
using namespace std;
int main()
{
    char data[1];
    cout&lt;&lt;"Enter data: ";
    cin&gt;&gt;data;
    cout&lt;&lt;data[2]&lt;&lt;endl;
}


Entering a string with a length greater than 1 (e.g., "Hello"), will produce output as if the array were large enough to hold it (e.g., "l"). Should this not be throwing an error when it tried to store a value that was longer than the array or when it tried to retrieve a value with an index greater than the array length?
