I think the issue might lie in the choice of geom_
function. In your title you say you want to show a distribution - as you're plotting the distribution of a continuous variable (trip_duration
), you need a histogram, not a bar chart (which is suited to show frequencies of a categorical variable).
I recommend using From Data to Viz to check what's the best visualisation depending on your data types.
I'll first create a minimal reproducible example for you (please do this next time you ask a question - as @MrFlick said in the comments, we can't load a screenshot into R. See his links for how to do this).
library(ggplot2)
# Create reproducible example
set.seed(42)
all_trips <- data.frame(
trip_duration = rnorm(n = 100, mean = 594, sd = 60),
member_casual = sample(c("member", "casual"), replace = T, 100)
)
# Plot
ggplot(data = all_trips) +
geom_histogram(mapping = aes(x = trip_duration,
fill = member_casual))

Compare with a bar chart, that you can use with categorical data:
ggplot(data = all_trips) +
geom_bar(mapping = aes(x = rideable_type,
fill = member_casual))

Created on 2022-08-27 by the reprex package (v2.0.1)