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

data pivot - add columns to the right of the figure #987

Merged
merged 5 commits into from
Mar 13, 2024

Conversation

shapiromatron
Copy link
Owner

@shapiromatron shapiromatron commented Feb 6, 2024

Add new option to add content to the right of the plot in a data pivot.

Check an item "to right":

Screenshot 2024-02-06 at 6 02 09 PM

image

image

Related work in #991 adds calculated columns as a new option, to compose multiple columns in a dataset to a new column.

@shapiromatron shapiromatron marked this pull request as ready for review March 4, 2024 14:51
@shapiromatron shapiromatron requested a review from rabstejnek March 4, 2024 14:51
Copy link
Collaborator

@rabstejnek rabstejnek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I did notice some edge cases though that aren't rendering as you would expect; I'll leave it up to you if they need to be addressed before merging, they are relatively minor.

  • When text background is highlighted but not behind the plot, the columns on the right aren't highlighted.
    image

  • When all columns are to the right and text background is highlighted, there is some leftover highlighting on the left of the plot.
    image

@shapiromatron shapiromatron merged commit ee3bdfa into main Mar 13, 2024
6 checks passed
@shapiromatron shapiromatron deleted the dp-right-cols branch March 13, 2024 02:19
rabstejnek added a commit that referenced this pull request Mar 14, 2024
* refactor vertical alignment

* add calc columns

* continue?

* Revert "refactor vertical alignment"

This reverts commit 29ad230.

* add back header

* add select manager

* remove unused field_index

* add calculated cols

* add computed fields

* fix db fixture

* add a check stub

* Added parser for custom format strings

* Ternary operations in format parser

* Updated tests

* Linter

* Update calculated columns

* Update npm script name

* Add tests, fix parser

* fix migration conflict

* use latest peggy version

* add "to_right" to fixture; should have added in #987

* add round

* fix test case

* add some text to describe how to use

* fix docs (facepalm)

---------

Co-authored-by: Daniel Rabstejnek <rabstejnek@gmail.com>
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

Successfully merging this pull request may close these issues.

2 participants