areski / django-nvd3

Django wrapper for nvd3 - It's time for beautiful charts
Other
416 stars 124 forks source link

scatterChart shape #23

Closed frewie closed 10 years ago

frewie commented 10 years ago

I tried setting the shapes as in your example:

kwargs1 = {'shape': 'circle', 'size': 1}
kwargs2 = {'shape': 'cross', 'size': 2}
kwargs3 = {'shape': 'triangle-up', 'size': 3}

extra_serie1 = {"tooltip": {"y_start": "", "y_end": " asdf"}}

chartdata = {
    'x': xdata,
    'name1': 'Frequency', 'y1': ydata1, 'kwargs1': kwargs1, 'extra1': extra_serie1,
    'name2': 'Importance', 'y2': ydata2, 'kwargs2': kwargs2, 'extra2': extra_serie1,
}

I really tried to get the shapes working in the scatterChart but I have no more idea. I always get the 'circle'. I used the exact versions of nvd3 and d3 as you stated in your bower configuration.

Even your unmodified demoproject does not yield the desired result as shown in the images of the ready.

Do you have an idea on that?

areski commented 10 years ago

Have you try to run the demoproject ? https://github.com/areski/django-nvd3/blob/master/demoproject

https://github.com/areski/django-nvd3/blob/master/demoproject/demoproject/views.py#L425

frewie commented 10 years ago

Appreciate your help!

Yes. I did. I used the original files and versions. Still no luck :-) I discovered that the shape is actually part of the values list in nvd3 now.

The parameters in kwargs do not actually end up in the values list, I guess. If you like, I can try to fix the issue in the repository if I'm not mistaken.

areski commented 10 years ago

I guess this has been solved with https://github.com/areski/python-nvd3/pull/27 ?

frewie commented 10 years ago

Yes. Found out it was an issue of python-nvd3...

areski commented 10 years ago

Thanks for the followup, I will close this ticket then