HumbleSoftware / Flotr2

Graphs and Charts for Canvas in JavaScript.
http://www.humblesoftware.com/flotr2/
MIT License
2.45k stars 528 forks source link

Mouse drag and timeFormat issue #203

Open bazilio91 opened 11 years ago

bazilio91 commented 11 years ago

Hello,

I have a problem with graph drag and time formatting. When I'm starting to drag, ticks lose their format.

Tested in:

http://jsfiddle.net/FPkY5/

cesutherland commented 11 years ago

You want to do a deep object merge instead of the simple clone and extend:

http://jsfiddle.net/cesutherland/FPkY5/1/

Or to be more efficient, extend the x-axis options with the new min/max.