shahinrostami / plotapi

Engaging visualisations, made easy.
https://plotapi.com
MIT License
267 stars 17 forks source link

Chord graph can't display properly #18

Closed Jiannan28 closed 3 years ago

Jiannan28 commented 3 years ago

Try to create chord with the below matrix value, but can't display properly:

matrix2 = [ [156, 46, 1, 1, 3, 0, 24], [46, 565, 6, 2, 10, 3, 51], [1, 6, 15, 0, 1, 0,1], [1, 2, 0, 7, 0, 0, 1], [3, 10, 1, 0, 16, 2, 3], [0, 3, 0, 0, 2, 9, 1], [24, 51, 1, 1, 3, 1, 143], ]

error
shahinrostami commented 3 years ago

Thanks for raising this.

This package is primarily for visualising co-occurrence rather than a mix of co-occurrence and occurrence (the diagonal of the matrix). This exception is thrown when the diagonal values are proportionally larger than half the sum of the matrix.

Explanation aside, I've found a solution and will be adding it as a feature to Chord Pro.

shahinrostami commented 3 years ago

This bug has been fixed in Chord Pro:

Screenshot 2020-10-03 at 23 52 42

I will add this to the error handling update coming soon to both Chord Free.

Jiannan28 commented 3 years ago

Thank you @shahinrostami . Adding the occurrence support will be super helpful.

shahinrostami commented 3 years ago

Thank you @shahinrostami . Adding the occurrence support will be super helpful.

It's available now in Chord Pro!

Jiannan28 commented 3 years ago

Thanks @shahinrostami . Could I know if that's will be also available in Chord free version on your roadmap?

val-ismaili commented 3 years ago

@shahinrostami is it possible to get labels for both ends of the occurences to show up? i.e. on the hover pop up between A and G, get it to show A to G occurence is X, and G to A occurence is Y ?

shahinrostami commented 3 years ago

@shahinrostami is it possible to get labels for both ends of the occurences to show up? i.e. on the hover pop up between A and G, get it to show A to G occurence is X, and G to A occurence is Y ?

I've created a new issue from your comment @val-ismaili , check it out here https://github.com/shahinrostami/chord/issues/24#issue-746730826. I'll be working on it 👍

akdeepak commented 3 years ago

Hi @shahinrostami , We are using the chord for co occurence relationship since it has a very good visual representation . The problem we are facing is the labels are not fully shown in the display. could you please let us know how can we solve this issue, since the labels are having larger words , so " wrap_labels = True" hiding the complete label name