Forum Discussion
Anonymous
8 years agoNot applicable
Creating pbiviz package from Custom Visual using Gulp
Hi there I have made some changes to the great Power BI Aquarium visual: https://community.powerbi.com/t5/Best-Visual-Contest/Power-BI-Aquarium/cns-p/7233 Now need to create the .pbiviz pac...
- 8 years ago
The getColor method returns an instance of IColorInfo.
To fix the issue you should return an object like this:
{ value: "#ED1C24" }Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Anonymous
8 years agoNot applicable
Hi v-viig - thank you for the reply. I have reached out to Enlighten.
Will then either convert the visual from the legacy format to the new format, or edit the pbiviz.json file (its a minor color change).
Do you know what format the colour is returned in json:
var m = e.getColor(h.toString());
I want to replace with something like:
var m=\"#ED1C24\";
which does not work (visual is returned in black, irrespective of hex code).
v-viig
8 years agoCommunity Champion
The getColor method returns an instance of IColorInfo.
To fix the issue you should return an object like this:
{
value: "#ED1C24"
}
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals