Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Stacked colum charts

Hi, i am trying since days ðŸ˜… to have a stacked colum charts where the data are dates. In the specific: i want to report the trend that the expected end date projects varies. For each project i have ...
  • Icey's avatar
    6 years ago

    Hi Anonymous ,

     

    In Stacked column chart or Clustered column chart, Date is not available in y-axis.

    Please try to use Gantt visual, or try to use R visual.

    Gantt:

     

    R:

    library(ggplot2)
    EndDate2 <- as.Date(dataset$EndDate, "%Y-%m-%d")
    EndDate3<-format(EndDate2,"%m-%d")
    Month2<-factor(dataset$Month, levels = month.name)
    ggplot(dataset, aes(x = Month2, y = DateDiff_Months, fill=Project, label=EndDate3)) 
         + geom_bar(position="dodge", stat="identity")
         +geom_text(position = position_dodge(width= 1))
         +theme(legend.position = "none",axis.title= element_blank(),axis.text.y = element_blank())

     

    BTW, .pbix file attached.

     

     

     

    Best Regards,

    Icey

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.