Color change in the graphs of a grid

How can I change the colors of the pieces on a chart, whether it’s bar pastel, whether it’s bar pastel, dynamically