Skip to content

Commit

Permalink
fix x axis position issue on cumulated bar charts
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg authored Oct 19, 2023
1 parent a79f1d1 commit 1f05b4b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/helpers-charts.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ create_cumulated_duration_per_user <- function(
e_bar(cum_duration) %>%
e_flip_coords() %>%
e_axis_labels(x = "Duration (hours)", y = "End user") %>%
e_tooltip()
e_tooltip() %>%
e_x_axis(nameLocation = "center", nameTextStyle = list(padding = 10))
})
}

Expand Down Expand Up @@ -193,7 +194,8 @@ create_cumulated_hits_per_user <- function(
e_bar(n) %>%
e_flip_coords() %>%
e_axis_labels(x = "Number of hits (app visit)", y = "End user") %>%
e_tooltip()
e_tooltip() %>%
e_x_axis(nameLocation = "center", nameTextStyle = list(padding = 10))
})
}

Expand Down Expand Up @@ -327,6 +329,7 @@ create_apps_consumer_ranking_chart <- function(ranking, threshold) {
e_flip_coords() %>%
e_axis_labels(x = "Number of hits", y = "End user") %>%
e_tooltip() %>%
e_x_axis(nameLocation = "center", nameTextStyle = list(padding = 10)) %>%
e_legend(FALSE)
})
}
Expand Down

0 comments on commit 1f05b4b

Please sign in to comment.