I’m generating some charts that need a hex string for the colors.
Example:
<dataseries name='ford' color='FF00FF' />
I’m creating these dynamically, so I would like to generate the hex code for each dataseries randomly.
What is the best way to do this?
Easiest way is to use
String.Formatand use the hexadecimal format for the argument.