-
Notifications
You must be signed in to change notification settings - Fork 192
Open
Description
Hi guys,
Just looking at the example given here: http://python-nvd3.readthedocs.io/en/latest/classes-doc/line-chart.html. Running the code:
from nvd3 import lineChart
chart = lineChart(name="lineChart", x_is_date=False, x_axis_format="AM_PM")
xdata = range(24)
ydata = [0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 4, 3, 3, 5, 7, 5, 3, 16, 6, 9, 15, 4, 12]
ydata2 = [9, 8, 11, 8, 3, 7, 10, 8, 6, 6, 9, 6, 5, 4, 3, 10, 0, 6, 3, 1, 0, 0, 0, 1]
extra_serie = {"tooltip": {"y_start": "There are ", "y_end": " calls"}}
chart.add_serie(y=ydata, x=xdata, name='sine', extra=extra_serie, **kwargs1)
extra_serie = {"tooltip": {"y_start": "", "y_end": " min"}}
chart.add_serie(y=ydata2, x=xdata, name='cose', extra=extra_serie, **kwargs2)
chart.buildhtml()
when running the python code the below output is given:
python line-graph.py
Traceback (most recent call last):
File "line-graph.py", line 9, in <module>
chart.add_serie(y=ydata, x=xdata, name='sine', extra=extra_serie, **kwargs1)
NameError: name 'kwargs1' is not defined
Version of D3 and and NVD3 as reported by Bower are as follows:
NVD3 = 1.8.5
D3 = 3.5.17
Metadata
Metadata
Assignees
Labels
No labels