mikedewar / d3py

a plottling library for python, based on D3
1.42k stars 202 forks source link

Time scales #45

Closed bartdegoede closed 12 years ago

bartdegoede commented 12 years ago

I added a bit of code so that D3's time scale functionality can be used. If one of the Series in the DataFrame object contains a list of datetime objects, they will be converted to timestamps in milliseconds, and the proper scale will be used. See the example :-)

mikedewar commented 12 years ago

Brilliant thanks! Merging this directly into the master branch, though have opened https://github.com/mikedewar/d3py/issues/46 to make sure we remember to commit this to the new branch, too.