Comments on: Build Your Custom Visuals in Power BI (Step-by-Step)/2016/09/27/power-bi-custom-visuals-programming/Professional Development, Data ScienceFri, 27 Mar 2020 07:16:26 +0000hourly1http://wordpress.com/By: Tsuyoshi Matsuzaki/2016/09/27/power-bi-custom-visuals-programming/comment-page-1/#comment-30879Fri, 27 Mar 2020 07:16:26 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5455#comment-30879I updated all source code in this post to meet the latest bits (pbiviz 3.1).
Now you don’t need to install/setup d3 and its typing by yourself. (These are all included in project template by default.)
d3 version is also upgraded (3.x -> 5.x) and compatible with latest typescripts (1.x -> 3.x).
Thanks for a lot of feedbacks !

Like

]]>
By: Tsuyoshi Matsuzaki/2016/09/27/power-bi-custom-visuals-programming/comment-page-1/#comment-30861Fri, 27 Mar 2020 03:03:31 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5455#comment-30861In reply to Pieter Olivier.

I’m sorry for my no response. I updated my post to meet the latest bits.
Yes, it returns as object (DataViewPropertyValue) type in current bits, then we should explicitly cast to boolean type. (Otherwise, it will be converted to string value.)
Thank you for your all feedbacks !

Like

]]>
By: Oneida almodovar/2016/09/27/power-bi-custom-visuals-programming/comment-page-1/#comment-26688Thu, 12 Sep 2019 21:49:35 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5455#comment-26688Hello,

Can you please share a sample adding a tooltip page to a custom visual?
Thank you

Like

]]>
By: venna/2016/09/27/power-bi-custom-visuals-programming/comment-page-1/#comment-26339Wed, 21 Aug 2019 04:03:42 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5455#comment-26339Thanks for sharing
Power BI Training In Hyderabad
Power BI Training
Power BI Online Training
Power BI Training Online

Like

]]>
By: DiDo/2016/09/27/power-bi-custom-visuals-programming/comment-page-1/#comment-2748Wed, 30 May 2018 10:16:20 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5455#comment-2748In reply to longzhuqing.

this.myVisualProp = options.dataViews[0].metadata.objects[“myCustomObj”][“myprop”] as boolean;

Liked by 1 person

]]>
By: longzhuqing/2016/09/27/power-bi-custom-visuals-programming/comment-page-1/#comment-2172Sun, 01 Apr 2018 09:24:53 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5455#comment-2172In reply to Pieter Olivier.

Hi,I encountered the same problem. How did you solve it?

Like

]]>
By: Satish/2016/09/27/power-bi-custom-visuals-programming/comment-page-1/#comment-951Sat, 23 Dec 2017 20:14:06 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5455#comment-951Nice tutorial. I’m facing an issue. The visual doesn’t the show contents until I alter “myCustomObj”. I want all contents to be displayed before doing any changes in the format pane.

Like

]]>
By: Mark/2016/09/27/power-bi-custom-visuals-programming/comment-page-1/#comment-522Mon, 20 Nov 2017 21:45:25 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5455#comment-522In reply to Pieter Olivier.

Both lines are the same…..How did you use the cast?

Like

]]>
By: Pieter Olivier/2016/09/27/power-bi-custom-visuals-programming/comment-page-1/#comment-395Mon, 16 Oct 2017 08:07:17 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5455#comment-395In reply to Pieter Olivier.

Found a soution, i used a cast in that line of code as follows:
//working code
this.myVisualProp = options.dataViews[0].metadata.objects[“myCustomObj”][“myprop”];

//error code:
this.myVisualProp = options.dataViews[0].metadata.objects[“myCustomObj”][“myprop”];

Like

]]>
By: Pieter Olivier/2016/09/27/power-bi-custom-visuals-programming/comment-page-1/#comment-394Mon, 16 Oct 2017 07:50:09 +0000http://blogs.msdn.microsoft.com/tsmatsuz/?p=5455#comment-394Hi, Thanks for the tutorial. I have one problem. I get an error message with this line of code:
this.myVisualProp = options.dataViews[0].metadata.objects[“myCustomObj”][“myprop”];
Error: Type ‘DataViewPropertyValue’ is not assignable to type boolean
Type ‘string’ is not assignable to type boolean.
(property) powerbi.extensiblity.visial.Visual.myVisualProp: boolean

Am I missing a config setting or a reference, or is this old version API issues?

Pieter

Like

]]>