I just started using Rickshaw and was in a specific situation.
But, before I go any further, the Rickshaw documentation is virtually non-existent, which is very frustrating because the performance of Rickshaw is outstanding compared to other JS graphics libraries.
The best way to find examples is to dig out the source code and sample code on your github page to understand the meaning (not the way the documentation should be).
Having said that, give it a try and build a strong question / answer database here in StackOverflow!
So, back to the question :) It seems that you have already found your own solution to the issue, but I also provided my solution.
Instead of using Rickshaw.Graph.Axis.Time I used Rickshaw.Graph.Axis.X and set tickFormat .
var data = [ { x: TIME_SINCE_EPOCH_IN_SECONDS, y: VALUE }, { x: NEXT_TIME_SINCE_EPOCH_IN_SECONDS, y: NEXT_VALUE } ] var xAxis = new Rickshaw.Graph.Axis.X({ graph: graph, tickFormat: function(x){ return new Date(x * 1000).toLocaleTimeString(); } }) xAxis.render();
toLocaleTimeString () can be any of the Javascript date functions, for example toLocaleString () , toLocaleDateString () , toTimeString (), or toUTCString () . Obviously, because tickFormat takes a function as an argument that its own formatter can provide.
Coliber, I would be interested to understand your answer if you could provide more detailed information.
Mandm source share