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

Add barplot padding/border options #350

Closed
fedarko opened this issue Aug 22, 2020 · 0 comments · Fixed by #386
Closed

Add barplot padding/border options #350

fedarko opened this issue Aug 22, 2020 · 0 comments · Fixed by #386

Comments

@fedarko
Copy link
Collaborator

fedarko commented Aug 22, 2020

  • Option to have empty space between adjacent layers (doable by just increasing the prevLayerMaxX / prevLayerMaxD variable by some number every iteration through this loop). This results in plots looking like:
    padding
    (This is of course inspired by Anvi'o, which AFAICT does this by default for its circular barplots and looks really pretty)

  • Option to surround bars with a border of a specifiable color (black would be a good default). This (along with the above option, now that i think of it) is currently doable by adding in "feature metadata" barplots before / after each barplot layer with a small length and of a specified default color, but that's cumbersome and isn't currently possible for visualizations where no feature metadata is provided.

@fedarko fedarko self-assigned this Aug 22, 2020
fedarko added a commit to fedarko/empress that referenced this issue Sep 22, 2020
there was some extra v-space when barplots were available due to
layout but 'draw barplots' was unchecked; this was because a <p>
was not hidden (although the one button inside it was). This
discrepancy has since been fixed.
fedarko added a commit to fedarko/empress that referenced this issue Sep 22, 2020
fedarko added a commit to fedarko/empress that referenced this issue Sep 22, 2020
makes things look less cluttered. had too many <hr />s previously
fedarko added a commit to fedarko/empress that referenced this issue Sep 22, 2020
more would be nice but probs ok for now
ElDeveloper added a commit that referenced this issue Sep 22, 2020
* ENH: Add UI of barplot border options;fix CSS #350

there was some extra v-space when barplots were available due to
layout but 'draw barplots' was unchecked; this was because a <p>
was not hidden (although the one button inside it was). This
discrepancy has since been fixed.

* ENH: Add barplot borders -- close #350

* STY: prettify

* DOC: tidy comment

* ENH: shift around and tidy up #350 UI

makes things look less cluttered. had too many <hr />s previously

* TST: unbreak tests (add new barplot ui eles)

* DOC: add add'tl comment abt freebies

* DOC: add notes about making it go fast

* TST: very basic #350 tests

more would be nice but probs ok for now

* STY: prettify test

* DOC: fix documentation within initBorderOptions()

* Update empress/support_files/js/empress.js

Co-authored-by: Yoshiki Vázquez Baeza <[email protected]>

* TST: beef up barplot border init test

* TST: test colorpicker init for barplot borders

* TST: document barplot border init test

Co-authored-by: Yoshiki Vázquez Baeza <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant