user1440303
user1440303

Reputation: 103

Time axis in 24 hour clock

I'd like to be able to display time using the 24 hour clock. When I generate a time axis, the default display is in the 12 hour clock. So far, I haven't found a way of changing this. Can this be done?

Upvotes: 1

Views: 1392

Answers (1)

Manse
Manse

Reputation: 38147

(Without seeing any code its difficult to suggest an exact answer)

But you could use the following to create 24 hour time format :

var format = d3.time.format("%H:%M");

see the d3 time formatting docs here

Upvotes: 3

Related Questions