Forum Discussion
Creating pbiviz package from Custom Visual using Gulp
- 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
This is the old way of building packages that no longer supported. Instead of gulp Custom Visuals use PBIVIZ nowadays.
We'd recommend to contact [email protected] and [email protected] who owns source code.
Probably he will share the updated code that uses PBIVIZ.
Otherwise, you would need to convert code to PBIVIZ format by yourself.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
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-viig8 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