Forum Discussion
Different Behaviour of Custom Visual in Power BI Service and Desktop
- 9 years ago
You should use getFormatStringByColumn method to get a correct type that has been specified by Power BI Desktop.
I'd recommend that you should use valueFormatter to format values.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- 9 years ago
Hello v-mubish,
Could you please install @types/d3@3.5.36 (npm i @types/[email protected] --save) and try to build the visual again?
Please pay attention to the fact that you should execute all of commands in the visual's directory.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Hi v-viig,
My npm and pbiviz version are-:
Actually the reason behind error was, in .../node_modules/powerbi-visuals-utils/lib/index.d.ts file (U can find this file here)
first line is throwing error.
if I am removing this line then NO error is there while starting the custom visual...but custom visual is not displaying anything just a blank iframe in power BI service. with this blank iframe, in console getting this error-:
Hello v-mubish,
Could you please install @types/d3@3.5.36 (npm i @types/[email protected] --save) and try to build the visual again?
Please pay attention to the fact that you should execute all of commands in the visual's directory.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals