Mapping wp values to colours to enable legend & custom ordering of bars #55
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!