Mapping wp values to colours to enable legend & custom ordering of bars#55
Open
erstearns wants to merge 8 commits intogiocomai:masterfrom
Open
Mapping wp values to colours to enable legend & custom ordering of bars#55erstearns wants to merge 8 commits intogiocomai:masterfrom
erstearns wants to merge 8 commits intogiocomai:masterfrom
Conversation
…e arg and set palette to correct number of unique vals and changed names to match unique vals of colour_by arg
…g is doing and also added order_by arg to function and testing as i go
… and coded up the inclusion of a legend
Color mapping & legend & ordering
Color mapping & order & legend
Owner
|
Thanks a lot for taking the time! I'm travelling these days, but in the coming weeks I should be able to take a look! |
…hape 1 width unit larger than the original line
added new arg to allow user to add borders to lines by creating new s…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For starters, what an awesome package! Also, this PR corresponds to issue #54 -- ended up figuring it out!
I am using this a bit differently than it was designed for -- instead of project planning, I am using it to depict project work done. I am part of a dynamic team that provides technical support to different groups and the team leader is looking for a gantt chart depicting all the different project supported since 2020 through to present.
I have edited the
ganttrifyfunction to:order_by, to inform the ordering (top to bottom) of bars/projectsorder_ascending, to indicate type of orderingcolour_by, that allows specification of which column to use for colouring the project barscolour_byfield are mapped to actual colors to enable inclusion of a useful legendinclude_legend, to keep legend for colour_by field; also added necessary adjustments to make sure mapping was done properlyinclude_legend, also added an arg,legend_titleto allow the user to specify a legend title.New args:
Woohoo!