Help-Bar chart different colours bars

Hi @Panagiotis_Emmanouil , you could put the colors by this way: with fill way.

# Define the color palette for the bars
my_colors <- c("#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7") # Is necesary put the number of colors according bars.

# Create the bar chart with custom fill colors
ggplot(data = daily_activity_summary) +
  geom_col(mapping = aes(x = ActivityDateWeekly, y = Average_Total_Steps, fill = ActivityDateWeekly)) +
  scale_fill_manual(values = my_colors)

Try to put the data for better help us all the R community.
check

1 Like