RGB or Hex numbers in Googlechart - chartEditor

45 Views Asked by At

I am using Google-charts in my webappplication application that uses AngularJs. To let the user configure the chart options am trying to use chartEditor class.

But i have a doubt, do we need to select only from those 80 colors in that color palette ??

what needs to be done if the user wants to use RGB numbers or Hex numbers for choosing colors ??

1

There are 1 best solutions below

1
On

You can use all HEX color, but you need to declare those colors on the init.

And, in case of the user wants to use RGB, you need to convert the RGB color to HEX format.