Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninformative error when creating Chord diagram #2581

Closed
gmontamat opened this issue Apr 19, 2018 · 13 comments
Closed

Uninformative error when creating Chord diagram #2581

gmontamat opened this issue Apr 19, 2018 · 13 comments

Comments

@gmontamat
Copy link

@gmontamat gmontamat commented Apr 19, 2018

I was trying to create a Chord diagram based on https://github.com/ioam/holoviews/blob/master/examples/gallery/demos/bokeh/route_chord.ipynb
I assumed it should work on my dataframes since they were very similar to the ones in the examples. I got the error:

ValueError: None of the available storage backends were able to support the supplied data format.

The actual issue was that I had loop edges (connecting nodes to themselves) which doesn't happen on the sample airport routes dataset. Removing those loops fixed the issue but a more clear error message would have saved me a couple hours.

@philippjfr
Copy link
Member

@philippjfr philippjfr commented Apr 19, 2018

Thanks for filing this issue, that would indeed be helpful. It's not quite clear to me why loop edges shouldn't be supported so this might in fact be a bug but for now I've labeled the issue as an enhancement request.

Loading

@philippjfr
Copy link
Member

@philippjfr philippjfr commented Apr 19, 2018

Would you happen to have a small example to reproduce this?

Loading

@philippjfr
Copy link
Member

@philippjfr philippjfr commented Apr 19, 2018

Nevermind, this is sufficient:

hv.Chord([('A', 'B', 2), ('B', 'A', 3), ('A', 'A', 2)])

Loading

@gmontamat
Copy link
Author

@gmontamat gmontamat commented Apr 19, 2018

Is it possible to support loop edges in these charts? It would be nice to have them like on this plotly example.

Loading

@philippjfr
Copy link
Member

@philippjfr philippjfr commented Apr 19, 2018

@gmontamat It will be once the PR above is merged.

Loading

@gmontamat
Copy link
Author

@gmontamat gmontamat commented Apr 19, 2018

@philippjfr great news! Thanks.

Loading

@philippjfr philippjfr added this to the v1.10.2 milestone Apr 24, 2018
@garfield2020
Copy link

@garfield2020 garfield2020 commented Mar 8, 2019

What data structure is needed for holoview chord diagrams?
I am trying to feed the center_path dataframe
screen shot 2019-03-08 at 10 07 35 am

with
hv.Chord(center_path)
and it gives me the error:
Number of samples, -1, must be non-negative.

Loading

@philippjfr
Copy link
Member

@philippjfr philippjfr commented Mar 8, 2019

@garfield2020 Could you provide a full traceback, and preferably a reproducible example?

Loading

@garfield2020
Copy link

@garfield2020 garfield2020 commented Mar 8, 2019

Heres the full traceback, thanks philipp!
screen shot 2019-03-08 at 10 58 12 am

Loading

@philippjfr
Copy link
Member

@philippjfr philippjfr commented Mar 8, 2019

Are there any negative values in your value column?

Loading

@garfield2020
Copy link

@garfield2020 garfield2020 commented Mar 8, 2019

That worked! I filtered out the negative values, and no more error.
But now I run the code and still don't get a chord chart output:
screen shot 2019-03-08 at 11 43 56 am

Loading

@jbednar
Copy link
Member

@jbednar jbednar commented Mar 8, 2019

You should call hv.extension('bokeh') if you want graphical representations.

Loading

@garfield2020
Copy link

@garfield2020 garfield2020 commented Mar 8, 2019

Perfect! thank you both

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants