shutterstock / rickshaw

JavaScript toolkit for creating interactive real-time graphs
https://shutterstock.github.io/rickshaw
MIT License
6.53k stars 941 forks source link

Allow for millisec resolution for graph data #66

Closed acmurthy closed 12 years ago

acmurthy commented 12 years ago

My graph's d.x is in ms resolution, appreciate pointers on how to fix x-axis display to account for the same - happy to provide a patch. Thanks.

dchester commented 12 years ago

If you're okay with using floating-point to specify sub-second times, that seems like one way to go. Then I think it would just be a matter of passing an xFormatter to Rickshaw.Graph.HoverDetail, and maybe adding a millisecond or centisecond entry in Rickshaw.Fixtures.Time to be able to draw ticks. Let us know how it goes if you give it a shot.