<?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 Add native qlik filtering to extension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Add-native-qlik-filtering-to-extension/m-p/2477567#M100384</link>
    <description>&lt;P&gt;Good afternoon,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been looking for a good Radar chart extension, and this one is by far the best and most useable. The official Qlik one requires data transformation by unpivoting columns to be useable and doesn't provide enough customisation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue with this extension is it doesn't have the same filter as other visualisation, where you can click on the dimension name in the legend to filter for it and have that apply across the whole application.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Curious how complicated this would be to implement? Extension in question below.&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nfire11/QTiny_Radar" target="_blank" rel="noopener"&gt;https://github.com/nfire11/QTiny_Radar&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2024 14:24:41 GMT</pubDate>
    <dc:creator>johnnyjohn</dc:creator>
    <dc:date>2024-08-22T14:24:41Z</dc:date>
    <item>
      <title>Add native qlik filtering to extension</title>
      <link>https://community.qlik.com/t5/App-Development/Add-native-qlik-filtering-to-extension/m-p/2477567#M100384</link>
      <description>&lt;P&gt;Good afternoon,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been looking for a good Radar chart extension, and this one is by far the best and most useable. The official Qlik one requires data transformation by unpivoting columns to be useable and doesn't provide enough customisation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue with this extension is it doesn't have the same filter as other visualisation, where you can click on the dimension name in the legend to filter for it and have that apply across the whole application.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Curious how complicated this would be to implement? Extension in question below.&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nfire11/QTiny_Radar" target="_blank" rel="noopener"&gt;https://github.com/nfire11/QTiny_Radar&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 14:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-native-qlik-filtering-to-extension/m-p/2477567#M100384</guid>
      <dc:creator>johnnyjohn</dc:creator>
      <dc:date>2024-08-22T14:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add native qlik filtering to extension</title>
      <link>https://community.qlik.com/t5/App-Development/Add-native-qlik-filtering-to-extension/m-p/2498444#M102880</link>
      <description>&lt;P&gt;If you’re able to modify the code for the extension (depending on the licensing details on the GitHub repository), you should be able to add native Qlik filtering functionality. This can be achieved by extending the &lt;CODE&gt;paint&lt;/CODE&gt; function to include event handlers for both legend and data point interactions.&lt;/P&gt;
&lt;P&gt;For example, you can use the following functions:&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE class="!overflow-visible"&gt;&lt;CODE class="!whitespace-pre hljs language-javascript"&gt;&lt;SPAN class="hljs-comment"&gt;// Add legend filtering&lt;/SPAN&gt;
myChart.&lt;SPAN class="hljs-title function_"&gt;on&lt;/SPAN&gt;(&lt;SPAN class="hljs-string"&gt;'legendselectchanged'&lt;/SPAN&gt;, &lt;SPAN class="hljs-keyword"&gt;function&lt;/SPAN&gt; (&lt;SPAN class="hljs-params"&gt;params&lt;/SPAN&gt;) {
    &lt;SPAN class="hljs-keyword"&gt;var&lt;/SPAN&gt; selected = params.&lt;SPAN class="hljs-property"&gt;name&lt;/SPAN&gt;; &lt;SPAN class="hljs-comment"&gt;// The name of the clicked legend item&lt;/SPAN&gt;
    &lt;SPAN class="hljs-keyword"&gt;if&lt;/SPAN&gt; (selected) {
        app.&lt;SPAN class="hljs-title function_"&gt;field&lt;/SPAN&gt;(dim_info).&lt;SPAN class="hljs-title function_"&gt;selectValues&lt;/SPAN&gt;([{ &lt;SPAN class="hljs-attr"&gt;qText&lt;/SPAN&gt;: selected }], &lt;SPAN class="hljs-literal"&gt;true&lt;/SPAN&gt;, &lt;SPAN class="hljs-literal"&gt;true&lt;/SPAN&gt;);
    }
});

&lt;SPAN class="hljs-comment"&gt;// Add radar chart data point filtering&lt;/SPAN&gt;
myChart.&lt;SPAN class="hljs-title function_"&gt;on&lt;/SPAN&gt;(&lt;SPAN class="hljs-string"&gt;'click'&lt;/SPAN&gt;, &lt;SPAN class="hljs-keyword"&gt;function&lt;/SPAN&gt; (&lt;SPAN class="hljs-params"&gt;params&lt;/SPAN&gt;) {
    &lt;SPAN class="hljs-keyword"&gt;var&lt;/SPAN&gt; selected = params.&lt;SPAN class="hljs-property"&gt;data&lt;/SPAN&gt;.&lt;SPAN class="hljs-property"&gt;name&lt;/SPAN&gt;; &lt;SPAN class="hljs-comment"&gt;// The name of the clicked data point&lt;/SPAN&gt;
    &lt;SPAN class="hljs-keyword"&gt;if&lt;/SPAN&gt; (selected) {
        app.&lt;SPAN class="hljs-title function_"&gt;field&lt;/SPAN&gt;(dim_info).&lt;SPAN class="hljs-title function_"&gt;selectValues&lt;/SPAN&gt;([{ &lt;SPAN class="hljs-attr"&gt;qText&lt;/SPAN&gt;: selected }], &lt;SPAN class="hljs-literal"&gt;true&lt;/SPAN&gt;, &lt;SPAN class="hljs-literal"&gt;true&lt;/SPAN&gt;);
    }
});&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If modifying the code is an option, these additions should allow the extension to apply filters across the Qlik application.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 02:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-native-qlik-filtering-to-extension/m-p/2498444#M102880</guid>
      <dc:creator>nhenckel</dc:creator>
      <dc:date>2024-12-18T02:20:55Z</dc:date>
    </item>
  </channel>
</rss>

