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

tooltipContent on chords chart #70

Open
lmalet opened this issue Sep 19, 2018 · 1 comment
Open

tooltipContent on chords chart #70

lmalet opened this issue Sep 19, 2018 · 1 comment

Comments

@lmalet
Copy link

lmalet commented Sep 19, 2018

Hi,
I'm trying to understand the "chords.js" file, because I would like to integrate it in a Dash App.

My issue is when I mouse over a chord, I can see the source Chr and the target Chr, but there is no value, it says "undefined". Is it normal? Does it use the data of the "fusion-gene,csv" file?

And I don't understand this:

      tooltipContent: function (d) {
        return '<h3>' + d.source.id + ' ➤ ' + d.target.id + ': ' + d.value + '</h3><i>(CTRL+C to copy to clipboard)</i>'
      },

particularly the " d.source.id" and the "d.target.id", I don't quiet understand where it comes from.

I have to inform you that I am a beginner in Javascript, I still have a lot to learn!

Thanks in advance!

@iamsrujal
Copy link

iamsrujal commented Nov 4, 2019

This d.source.id comes from fusionJSON Object Array...

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

No branches or pull requests

2 participants