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

Left justify activities #17

Closed
cbud opened this issue Mar 16, 2021 · 3 comments
Closed

Left justify activities #17

cbud opened this issue Mar 16, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@cbud
Copy link

cbud commented Mar 16, 2021

Any idea how to left justify activities?

@giocomai
Copy link
Owner

You mean, like this?

library("ganttrify")
library("ggplot2")
ganttrify(project = ganttrify::test_project,
          spots = ganttrify::test_spots,
          project_start_date = "2020-03") +
  theme(axis.text.y = element_text(hjust = 0))

Created on 2021-03-16 by the reprex package (v1.0.0)

The output graph is a ggplot2 object, even if with some unusual features, so some theming options from ggplot just work.

I will consider adding this as a parameter.

@giocomai giocomai added the enhancement New feature or request label Mar 16, 2021
@giocomai
Copy link
Owner

Here it is:

library("ganttrify")
ganttrify(project = ganttrify::test_project,
          spots = ganttrify::test_spots,
          project_start_date = "2021-04",
          axis_text_align = "left") 

Created on 2021-03-19 by the reprex package (v1.0.0)

@cbud
Copy link
Author

cbud commented Mar 19, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants