You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using the python-nvd3==0.14.2 library with django-nvd3==0.9.7.
The problem is that a line where I try to pass a xAxis.ticks-argument through to nvd3, but this causes a colon to be in the js-code, which is not supposed to be there (to my best knowledge).
I'm willing to fix this myself and make a pull-request, but I need in tracking down the part of the code which causes the error.
Like I said, I guess the problem is the colon, which is in the code right before:
chart.xAxis.ticks(d3.time.monday.range, 1);
as this is exactly I've been trying to generate with my added line in Python, and the close proximity of the colon to my code indicates that it has to do with my line.
I'm not sure that python-nvd3 causes the problem, as django-nvd3 just passes through the argument in kwargs to load_chart which is python-nvd3 function.
But in Python-nvd3 I can't figure out how this argument is handled further, from line 135 in NVD3Chart.py on.
Thanks for your help.
The text was updated successfully, but these errors were encountered:
Hi,
I'm using the python-nvd3==0.14.2 library with django-nvd3==0.9.7.
The problem is that a line where I try to pass a xAxis.ticks-argument through to nvd3, but this causes a colon to be in the js-code, which is not supposed to be there (to my best knowledge).
I'm willing to fix this myself and make a pull-request, but I need in tracking down the part of the code which causes the error.
The Code of my view.py is:
removing the line
fixes the issue and the chart is drawn correctly.
If the above line remains in the code this produces the following html/js-code:
Like I said, I guess the problem is the colon, which is in the code right before:
as this is exactly I've been trying to generate with my added line in Python, and the close proximity of the colon to my code indicates that it has to do with my line.
I'm not sure that python-nvd3 causes the problem, as django-nvd3 just passes through the argument in kwargs to load_chart which is python-nvd3 function.
But in Python-nvd3 I can't figure out how this argument is handled further, from line 135 in NVD3Chart.py on.
Thanks for your help.
The text was updated successfully, but these errors were encountered: