<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Working example for new format pane in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Working-example-for-new-format-pane/m-p/3031803#M6605</link>
    <description>&lt;P&gt;I did find a working example in this branch:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-visuals-sampleBarChart/tree/barChartTutorial" target="_blank"&gt;https://github.com/microsoft/PowerBI-visuals-sampleBarChart/tree/barChartTutorial&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code sample is quite different from the code in the tutorial.&lt;/P&gt;&lt;P&gt;I will digg a bit deeper here and report back.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 15:42:12 GMT</pubDate>
    <dc:creator>spandl</dc:creator>
    <dc:date>2023-01-19T15:42:12Z</dc:date>
    <item>
      <title>Working example for new format pane</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Working-example-for-new-format-pane/m-p/3029469#M6594</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a full example of the new format pane.&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/format-pane" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/developer/visuals/format-pane&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the documentation in the help section, I am able to create and configure the new format pane, but I am somehow unsure how to read the updated values. The function `&lt;SPAN&gt;getFormattingModel` seems to return always the default settings, but I am sure I simply implemented it the wrong way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Seeing a complete integration would certainly help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ralph&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 19:00:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Working-example-for-new-format-pane/m-p/3029469#M6594</guid>
      <dc:creator>spandl</dc:creator>
      <dc:date>2023-01-18T19:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Working example for new format pane</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Working-example-for-new-format-pane/m-p/3029804#M6595</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/370678"&gt;@spandl&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;getFormattingModel()&lt;/FONT&gt; method is used to customise the format layout. You still need to parse the data view when your visual updates so that these values are read and exposed.&lt;/P&gt;
&lt;P&gt;Previously, you would typically call &lt;FONT face="courier new,courier"&gt;VisualSettings.parse()&lt;/FONT&gt; on your data view in the &lt;FONT face="courier new,courier"&gt;update()&lt;/FONT&gt; method, and this is&amp;nbsp; typically what's included in the visual when you run &lt;FONT face="courier new,courier"&gt;pbiviz new&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;If you're using&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;powerbi-visuals-utils-formattingmodel&lt;/FONT&gt; to use the new layout then this has a helper method -&amp;nbsp;&lt;FONT face="courier new,courier"&gt;populateFormattingSettingsModel()&lt;/FONT&gt; - which can be used instead, although the 'legacy' way still should work fine (I added formatting cards to one of my visuals prior to the new doc being made available, and this works fine, but I wouldn't recommend you follow my example and try and do everything using the supplied doc and libraries).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'd recommend looking at the revised tutorial, which includes the new formatting pane, &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/custom-visual-develop-tutorial-format-options#:~:text=In%20the%20update%20method%2C%20after%20the%20declaration%20of%20the%20radius%20variable%2C%20add%20the%20following%20code." target="_self"&gt;specifically step 11&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you've tried this, then it's probably better if you share the relevant parts of your code (including your capabilities) so we can have a look and see if there's anything that sticks out.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 22:51:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Working-example-for-new-format-pane/m-p/3029804#M6595</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2023-01-18T22:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Working example for new format pane</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Working-example-for-new-format-pane/m-p/3030881#M6597</link>
      <description>&lt;P&gt;Thank-You Daniel!&lt;BR /&gt;&lt;BR /&gt;Indeed, I missed step 2 in the new tutorial!&lt;BR /&gt;&lt;BR /&gt;I installed the sample chart with `&lt;SPAN&gt;pbiviz new CircleCard` and checked the Github code. As this sample was still the old version, I didn't continue. My fault.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The tutorial example pretty much matches what I had in the past.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, when I call&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;visualSettings&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;formattingSettingsService&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;populateFormattingSettingsModel&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VisualSettings&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;dataView&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;```&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;`this.visualSettings` is always populated with the default values, even if I cange circle thickness to another value, this always returns the initial value 2.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Does this ring a bell?&lt;/DIV&gt;&lt;DIV&gt;Otherwise I will review my code and try to be more specific.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 10:30:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Working-example-for-new-format-pane/m-p/3030881#M6597</guid>
      <dc:creator>spandl</dc:creator>
      <dc:date>2023-01-19T10:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Working example for new format pane</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Working-example-for-new-format-pane/m-p/3031803#M6605</link>
      <description>&lt;P&gt;I did find a working example in this branch:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-visuals-sampleBarChart/tree/barChartTutorial" target="_blank"&gt;https://github.com/microsoft/PowerBI-visuals-sampleBarChart/tree/barChartTutorial&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code sample is quite different from the code in the tutorial.&lt;/P&gt;&lt;P&gt;I will digg a bit deeper here and report back.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 15:42:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Working-example-for-new-format-pane/m-p/3031803#M6605</guid>
      <dc:creator>spandl</dc:creator>
      <dc:date>2023-01-19T15:42:12Z</dc:date>
    </item>
  </channel>
</rss>

