Dynamic color generation for bar diagram

Discussion created by sunilpalkar on Jun 17, 2014
Hello All,

I am using ESRI JSAPI 3.7/3.8 at my end and displaying info-window along with bar diagram. I have used this sample for reference.

I observed that the colors are hard coded that is only single color is displaying, what if I want to assign random colors?

-Searched on Google/Dojo library and found that Dojo is using only dollar theme.

So any help regarding this will be great!!

Thanks in advance!!