<?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 Deneb Facet Cross-Filtering Demo: A Field Guide to Red and Blue America in Data Stories Gallery</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Stories-Gallery/Deneb-Facet-Cross-Filtering-Demo-A-Field-Guide-to-Red-and-Blue/m-p/2181673#M6154</link>
    <description>&lt;P&gt;This started as an experiment with the &lt;A href="https://deneb-viz.github.io/" target="_self"&gt;Deneb&lt;/A&gt; custom visual, to see how well the Vega-Lite's faceting functionality worked with the dataset behind the main visual by Randy Yeip, Stuart A. Thompson and Will Welch in &lt;A href="http://graphics.wsj.com/elections/2016/field-guide-red-blue-america/" target="_self"&gt;this Wall Street Journal article&lt;/A&gt; on the 2016 US election.&lt;/P&gt;
&lt;P&gt;Once I wired-up the base visual (and the legend visual explaining the PVI Score, which also uses Deneb), I started to think about how well cross-filtering integration may work at both the data point and the facet level, so did a bit more work to illustrate that the matrix in the same page could be cross-filtered accordingly (or through a combination of either, plus multi-selection with the Ctrl key).&lt;/P&gt;
&lt;P&gt;Bookmarks were then added, to illustrate that selection state can also be saved and recalled, so this opens up storytelling potential a little further.&lt;/P&gt;
&lt;P&gt;The core visual is a single Deneb/Vega-Lite specification, using the following fields:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;State:&amp;nbsp;the column we want to facet by&lt;/LI&gt;
&lt;LI&gt;MapX: the x-coordinate of the state&lt;/LI&gt;
&lt;LI&gt;MapY: The y-coordinate of the state&lt;/LI&gt;
&lt;LI&gt;Year: the election year, and series of the x-axis for each facet chart (format : &lt;FONT face="courier new,courier"&gt;'YY&lt;/FONT&gt;)&lt;/LI&gt;
&lt;LI&gt;Year Sort: a column added during transformation to ensure that years sort nicely (note that Vega-Lite does let us prescribe a manual sort order, but this simplifies the data-driving of such a field)&lt;/LI&gt;
&lt;LI&gt;Inclination: how Replublican or Democratic each state is for a given election year&lt;/LI&gt;
&lt;LI&gt;PVI Score: the partisan voter index (how much the inclination leans relative to the nation overall)&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;As .json files can't be attached to Data Stories, the Deneb template is &lt;A href="https://gist.github.com/dm-p/14391de90a021e8965c26aa20de480ab" target="_self"&gt;available in this Gist&lt;/A&gt; (or can be inspected/modified in the attached workbook).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="reportid hidden"&gt;eyJrIjoiZjgwYTJiZDktMDY1YS00ZjM1LWEwZWUtM2FkOTU3ZWYzOWYxIiwidCI6IjUzYmJlMGQ3LTU0NzItNGQ0NS04NGY0LWJiNzJiYjFjMjI4OSJ9&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Nov 2021 02:54:42 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2021-11-10T02:54:42Z</dc:date>
    <item>
      <title>Deneb Facet Cross-Filtering Demo: A Field Guide to Red and Blue America</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Stories-Gallery/Deneb-Facet-Cross-Filtering-Demo-A-Field-Guide-to-Red-and-Blue/m-p/2181673#M6154</link>
      <description>&lt;P&gt;This started as an experiment with the &lt;A href="https://deneb-viz.github.io/" target="_self"&gt;Deneb&lt;/A&gt; custom visual, to see how well the Vega-Lite's faceting functionality worked with the dataset behind the main visual by Randy Yeip, Stuart A. Thompson and Will Welch in &lt;A href="http://graphics.wsj.com/elections/2016/field-guide-red-blue-america/" target="_self"&gt;this Wall Street Journal article&lt;/A&gt; on the 2016 US election.&lt;/P&gt;
&lt;P&gt;Once I wired-up the base visual (and the legend visual explaining the PVI Score, which also uses Deneb), I started to think about how well cross-filtering integration may work at both the data point and the facet level, so did a bit more work to illustrate that the matrix in the same page could be cross-filtered accordingly (or through a combination of either, plus multi-selection with the Ctrl key).&lt;/P&gt;
&lt;P&gt;Bookmarks were then added, to illustrate that selection state can also be saved and recalled, so this opens up storytelling potential a little further.&lt;/P&gt;
&lt;P&gt;The core visual is a single Deneb/Vega-Lite specification, using the following fields:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;State:&amp;nbsp;the column we want to facet by&lt;/LI&gt;
&lt;LI&gt;MapX: the x-coordinate of the state&lt;/LI&gt;
&lt;LI&gt;MapY: The y-coordinate of the state&lt;/LI&gt;
&lt;LI&gt;Year: the election year, and series of the x-axis for each facet chart (format : &lt;FONT face="courier new,courier"&gt;'YY&lt;/FONT&gt;)&lt;/LI&gt;
&lt;LI&gt;Year Sort: a column added during transformation to ensure that years sort nicely (note that Vega-Lite does let us prescribe a manual sort order, but this simplifies the data-driving of such a field)&lt;/LI&gt;
&lt;LI&gt;Inclination: how Replublican or Democratic each state is for a given election year&lt;/LI&gt;
&lt;LI&gt;PVI Score: the partisan voter index (how much the inclination leans relative to the nation overall)&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;As .json files can't be attached to Data Stories, the Deneb template is &lt;A href="https://gist.github.com/dm-p/14391de90a021e8965c26aa20de480ab" target="_self"&gt;available in this Gist&lt;/A&gt; (or can be inspected/modified in the attached workbook).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="reportid hidden"&gt;eyJrIjoiZjgwYTJiZDktMDY1YS00ZjM1LWEwZWUtM2FkOTU3ZWYzOWYxIiwidCI6IjUzYmJlMGQ3LTU0NzItNGQ0NS04NGY0LWJiNzJiYjFjMjI4OSJ9&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 02:54:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Stories-Gallery/Deneb-Facet-Cross-Filtering-Demo-A-Field-Guide-to-Red-and-Blue/m-p/2181673#M6154</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2021-11-10T02:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Deneb Facet Cross-Filtering Demo: A Field Guide to Red and Blue America</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Stories-Gallery/Deneb-Facet-Cross-Filtering-Demo-A-Field-Guide-to-Red-and-Blue/m-p/2183808#M6158</link>
      <description>&lt;P&gt;Nice work. &lt;BR /&gt;Thanks for sharing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 21:08:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Stories-Gallery/Deneb-Facet-Cross-Filtering-Demo-A-Field-Guide-to-Red-and-Blue/m-p/2183808#M6158</guid>
      <dc:creator>Icad01</dc:creator>
      <dc:date>2021-11-10T21:08:31Z</dc:date>
    </item>
  </channel>
</rss>

