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,
I am trying to install "FormattingUtils" set that u suggested. I followed the steps for formattingUtils installation.
after that, Getting this error while trying to run the visual by using "pbiviz start".
need help!!
Note-: I have followed all the steps mentioned in this link.
Please clarify these items:
- What version of pbiviz do you use (pbiviz --version)?
- What version of npm do you use (npm --version)?
I suppose that your PC has npm 2 or less. This is why some dependencies weren't installed.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- v-mubish9 years ago
Helper I
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-:
- v-viig9 years ago
Community Champion
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