From 9d91ae66c697fa79ce13b777edb7554d3fa92ded Mon Sep 17 00:00:00 2001 From: Christophe REGOUBY Date: Fri, 8 Dec 2023 11:39:10 +0100 Subject: [PATCH] rollback on #12 --- R/helpers-charts.R | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/R/helpers-charts.R b/R/helpers-charts.R index a49a3cf..94a3d3c 100644 --- a/R/helpers-charts.R +++ b/R/helpers-charts.R @@ -24,7 +24,7 @@ create_calendar_chart <- function( callback = NULL ) { - Date <- Freq <- Year <-NULL + Date <- Freq <- NULL renderEcharts4r({ validate(need(nrow(calendar_data()) > 0, "No calendar data found ...")) @@ -39,8 +39,6 @@ create_calendar_chart <- function( max <- max(calendar_data$Freq) calendar_chart <- calendar_data %>% - dplyr::mutate(Year = as.Date(Date, format = "%Y")) %>% - dplyr::group_by(Year) %>% e_charts(Date) %>% e_calendar(range = range) %>% e_effect_scatter(Freq, coord_system = "calendar", legend = FALSE) %>%