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

how to always display the labels instead of only with mouseover #5

Open
otmezger opened this issue Dec 3, 2012 · 4 comments
Open
Assignees

Comments

@otmezger
Copy link

otmezger commented Dec 3, 2012

Hi,

sorry to ask such a stupid question, but is there a way to always display the labels on the boxes and "flow"/lines? I want to use the function to export as png ( I already manage to do this), but I still need to display the information on the boxes and lines.

Thanks!

@tamc
Copy link
Owner

tamc commented Dec 3, 2012

Not a stupid question. There isn't an easy setting for this.

In the mean time, you could bodge it to happen by editing the sankey.js file to remove all calls to hide(). I think these are the ones that would need to go:

https://github.com/tamc/Sankey/blob/master/js/sankey.js#L310
https://github.com/tamc/Sankey/blob/master/js/sankey.js#L311
https://github.com/tamc/Sankey/blob/master/js/sankey.js#L403
https://github.com/tamc/Sankey/blob/master/js/sankey.js#L407
https://github.com/tamc/Sankey/blob/master/js/sankey.js#L582
https://github.com/tamc/Sankey/blob/master/js/sankey.js#L653

Let me know how you get on.

Tom

@ghost ghost assigned tamc Dec 3, 2012
@otmezger
Copy link
Author

otmezger commented Dec 3, 2012

Wow! what a service!

it worked. I made a variable "show_label" and then instead of removing this lines, I wrote if show_labe != true...

very cool, thanks.

@ravikrishnap
Copy link

I have add this feature by introducing a variable called show_label_on_mouse_over which has value by default true. And one can set this to false if they want to see labels all the time. I want to push this change. How can i do it. PLease help me out

@tamc
Copy link
Owner

tamc commented Jul 1, 2013

Have you read this: https://help.github.com/articles/using-pull-requests

If so, what step are you getting stuck on?

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

3 participants