Giter Club home page Giter Club logo

Comments (6)

giocomai avatar giocomai commented on June 1, 2024

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.

mattbk avatar mattbk commented on June 1, 2024

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.

giocomai avatar giocomai commented on June 1, 2024

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.

mattbk avatar mattbk commented on June 1, 2024

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.

giocomai avatar giocomai commented on June 1, 2024

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.

mattbk avatar mattbk commented on June 1, 2024

Can confirm that it works now with a generic font. Thanks!

from ganttrify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.