areski / python-nvd3

Python Wrapper for NVD3 - It's time for beautiful charts
Other
663 stars 191 forks source link

Simple change to get date formats to work #136

Closed josh-gree closed 7 years ago

josh-gree commented 7 years ago

The date axis format required manually editing the javascript - I think it was just looking for the wrong keyword argument. This fixes the issue, I am not sure if it may need some other changes?

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 81.034% when pulling 387484d9c694cc7d26ee5483a940ee3fb5a04eea on josh-gree:develop into 9408ceef67182bea1ada737098b491cf8a7cc773 on areski:develop.

areski commented 7 years ago

Here an example:

chart = lineChart(height=400, width=800, x_is_date=True, x_axis_format="%d %b %Y %H",
              jquery_on_ready=True)

Here an other one from the doc http://python-nvd3.readthedocs.io/en/latest/classes-doc/line-chart.html

For the data format of the X axis one have to use x_axis_format