Comments (6)
Do you mean, setting the start and end month, with something like "2020-10" for October 2020 (instead of the number of the month since the beginning of the project), or have the whole timeline based on days, where one could input say "2020-10-22" to "2020-11-17"? Or something else?
Either way, it shouldn't be a problem, so it will probably be possible soon.
from ganttrify.
have the whole timeline based on days, where one could input say "2020-10-22" to "2020-11-17"
This is what I mean. I'm not trying to add extra work for you, but I thought others might have the same feature request.
from ganttrify.
No worries, I was about to include it as a project output and was working on adding some features anyway (check out the updated readme for details). I hope this works for your use case. I may eventually add support for very short periods (e.g. conference programmes) or very long periods (historical periods), but for the time being this is tailored to work for medium timeframe (between a few months and a couple of years), which is what I feel is mostly needed as Gantt chart.
library("ganttrify")
knitr::kable(ganttrify::test_project_date_day)
wp | activity | start_date | end_date |
---|---|---|---|
Data team | Data collection | 2020-09-01 | 2020-09-10 |
Data team | Data processing | 2020-09-08 | 2020-09-14 |
Data team | Reporting | 2020-09-14 | 2020-09-16 |
Data team | Data visualisation | 2020-10-23 | 2020-10-30 |
Investigative team | Fieldwork | 2020-09-05 | 2020-09-15 |
Investigative team | Fieldwork | 2020-10-10 | 2020-10-20 |
Investigative team | Writing | 2020-10-21 | 2020-10-31 |
Social media team | Draft outputs | 2020-10-25 | 2020-10-28 |
Social media team | Active promo | 2020-10-31 | 2020-12-15 |
ganttrify(project = ganttrify::test_project_date_day,
spots = ganttrify::test_spots_date_day,
by_date = TRUE,
exact_date = TRUE)
Created on 2020-05-22 by the reprex package (v0.3.0)
from ganttrify.
Thanks for this!
I am running into an error, might be my version of ggplot2? I am running 3.3.0 on R 3.5.
Running your example:
ganttrify(project = ganttrify::test_project_date_day,
spots = ganttrify::test_spots_date_day,
by_date = TRUE,
exact_date = TRUE)
I get:
Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : polygon edge not found
from ganttrify.
The error message is not really helpful, but most probably this refers to a missing font. I used "Roboto Condensed" as default, as narrow/condensed fonts use text space more efficiently. On my machines, if the font was not found it just threw a warning, but still spit out the graph with a default font.
You can probably fix this just by adding the parameter font_family = "sans"
.
However, since this may well be a problem for many, I changed the default to sans
which is always available, and added more details in the readme.
If you update the package, things should work for you (of course, you'll have the graph with a generic sans font).
Please let me know if this works for you.
There is also now a hosted version of the shiny app that ships with the package, and it includes all fonts as well as the libraries for exporting to pdf and svg that may be missing on some systems.
from ganttrify.
Can confirm that it works now with a generic font. Thanks!
from ganttrify.
Related Issues (20)
- Problem with `mutate()` column `start_date`. HOT 1
- Installation failure HOT 1
- Feature Request - Dependencies HOT 1
- Colorize/emphasize test spots based on entity HOT 1
- Gray colour in the plot HOT 4
- Size control of the output HOT 4
- Show only wp through `hide_activity`? HOT 4
- Legend for spots
- Too many month columns HOT 3
- Feature_request: Add label_wrap HOT 2
- Create weeks labels HOT 2
- Praise 🎉 HOT 1
- Labels within bars, possible?
- [Proposal] Advertise ggantrify on the ggplot2 extension gallery!
- Possibility to show quarters instead of months and to regroup by years? HOT 1
- Future requests: To show the end date of each task around the each bar end HOT 1
- Keep the wp name but remove the coloured bar on the gannt chart HOT 3
- Introduce 3 tier y-axis (e.g. WP > Activity > Task) HOT 2
- Introduce week-based projects HOT 1
- delete HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ganttrify.