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

Optimize layout using Opacity if no color is selected #6

Open
hski-github opened this issue Feb 14, 2021 · 3 comments
Open

Optimize layout using Opacity if no color is selected #6

hski-github opened this issue Feb 14, 2021 · 3 comments

Comments

@hski-github
Copy link
Owner

hski-github commented Feb 14, 2021

If no color is selected, it is not so easy to see, where the lines are going. It might be useful to introduce border color or opacity.

image

@hski-github hski-github changed the title Opacity should be used if no color is selected Optimize layout if no color is selected Feb 14, 2021
@hski-github
Copy link
Owner Author

A slight introduction of opacity:0.9 would help a little, but would still preserve the color.

image

image

@hski-github
Copy link
Owner Author

path.setAttribute("style", "fill:" + rowcolor + ";opacity:0.9;");

Could also be a configuration parameter for the Sankey mod to set opacity to 1.0, 0.9, 0.8 or 0.7.

@hski-github hski-github changed the title Optimize layout if no color is selected Optimize layout using Opacity especially if no color is selected Jan 14, 2022
@hski-github hski-github changed the title Optimize layout using Opacity especially if no color is selected Optimize layout using Opacity if no color is selected Jan 14, 2022
@hski-github
Copy link
Owner Author

See also example of Sankey with opacity. Color is defined via bars, and the flows have opacity of the original color. https://github.com/samirsaci/visuals_analysis/blob/main/Sankey%20Chart.ipynb

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

1 participant