Forum Discussion
Create new custom visuals from the scratch code
Sample Bar Chart Repo could be the start point, and you'll need to learn TypeScript first. As for the error message, check Type assertions.
Hi v-chuncz-msft,
Thanks for your reply. I have follow the Sample Bar Chart Repo and write the same code as explain, but when look in the Power BI I am not able to see the report data.
Thanks
- v-chuncz-msft9 years ago
Community Support
Make sure that all necessary files are added to the files array in tsconfig.json. This allows the TypeScript compiler to load them and in what order. For tips about debugging your custom visual, see the debugging guide.
- Krunalbpatel9 years ago
Helper III
Hi v-chuncz-msft,
Thanks for your reply, and I got the solution for this. It was the D3 folder and node_module folder is not able to find the correct file. So it was giving an error.
- Krunalbpatel9 years ago
Helper III
Hi,
Now I am stuck on color selection for the bar or text. I got the color selection option in theproperty window but I am not able to apply the color to the bars or color. For this I have to add any file which I have forgottotn to add? I am getting error on getSelection() for the color.
Thanks
Krunal Patel