Thank you for your post.
At this time, it is not possible to script a color for the various categories in a graph.
I recommend posting this to our Product Ideas board at: Product Ideas
The Product Ideas board is actively monitored by Product Management and Development. All postings are discussed and considered for possible implementation in a future release.