Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17899

What format is returned from colorPalette.getColor ()? Hex, RGB etc

$
0
0

Hi there

 

I am attempting to change one line in pbiviz.json file to update the color:

 

Change json code from:

 

var m = e.getColor(h.toString());

(above works and cycles through the different colours in the colour pallette)

 

 

To (does not work):

 

var m=\"#ED1C24\";

or

var m=\"ED1C24\";

or

var m=\"red\";

 

None of the above works, and the visual always comes out black, irrespective of the hex code / color name used.

 

My query is then what does e.getColor(String) return? 

 

Thank you


Viewing all articles
Browse latest Browse all 17899

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>