Forum Discussion
Create new custom visuals from the scratch code
Hi,
I want to create custom Power BI visuals for the report. I follow the different links to create custom visuals. But did't get the code for that. I need to know how to write a code in the visuals.ts file. Can you please provide me some basic Idea, How can I write the code? Or Is there any document fot it How to write a code?
I have some inbuilt code but I am getting the following error
Argument of type '{ value: string | number | boolean | Date; identity: string; }' is not assignable to parameter of type 'CategoryViewModel'.
Types of property 'value' are incompatible.
Type 'string | number | boolean | Date' is not assignable to type 'string'.
Type 'number' is not assignable to type 'string'.
Thanks
10 Replies
- BhaveshPatelSuper User
Hi Krunal,
You can find more information on below github repository.
https://github.com/Microsoft/PowerBI-visuals
- KrunalbpatelHelper III
Hi BhaveshPatel,
I see this post, But how can I write a code? Is there any documentation for how to code? I am using the code but it gives me an error.
Argument of type '{ value: string | number | boolean | Date; identity: string; }' is not assignable to parameter of type 'CategoryViewModel'.
Types of property 'value' are incompatible.
Type 'string | number | boolean | Date' is not assignable to type 'string'.
Type 'number' is not assignable to type 'string'- BhaveshPatelSuper User
You would find more information on the below VIDEO POST by Sachin Patney.
https://www.youtube.com/watch?v=_thcxwFmH9A