Welcome
Please check this fhread out
https://community.grafana.com/t/how-to-give-color-to-each-sub-category-bar-in-bar-chart/87411