<?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 D3 Stacked Bar Chart with line  &amp;gt; MAKE LEGEND CLICKABLE AND FILTERABLE in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/D3-Stacked-Bar-Chart-with-line-gt-MAKE-LEGEND-CLICKABLE-AND/m-p/1622632#M11277</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;I need help&amp;nbsp;with a stacked bar chart with line.&amp;nbsp;&lt;BR /&gt;I use it as custom extension in Qlik Sense.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would like to make legend clickable and&amp;nbsp;filterable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know if there is any way?&lt;BR /&gt;Thank you very much in advance.&lt;/P&gt;&lt;P&gt;Here is the legend's code:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var legend&amp;nbsp;= plot.selectAll(".legend")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.data(color.domain().slice().reverse())&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.enter().append("g")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("class", "legend")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("transform", function(d, i) { return "translate(0," + i * 20 + ")"; }); &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;legend.append("rect")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("x", width + 6 + legend_width)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("width", 18)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("height", 18) &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.style("fill", color_2)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;legend.append("text")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("x", width + 30 + legend_width)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("y", 9)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("dy", ".35em")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.style("text-anchor", "start")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.text(function(d) { return d; })&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:05:55 GMT</pubDate>
    <dc:creator>Adriano</dc:creator>
    <dc:date>2024-11-16T20:05:55Z</dc:date>
    <item>
      <title>D3 Stacked Bar Chart with line  &gt; MAKE LEGEND CLICKABLE AND FILTERABLE</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/D3-Stacked-Bar-Chart-with-line-gt-MAKE-LEGEND-CLICKABLE-AND/m-p/1622632#M11277</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;I need help&amp;nbsp;with a stacked bar chart with line.&amp;nbsp;&lt;BR /&gt;I use it as custom extension in Qlik Sense.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would like to make legend clickable and&amp;nbsp;filterable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know if there is any way?&lt;BR /&gt;Thank you very much in advance.&lt;/P&gt;&lt;P&gt;Here is the legend's code:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var legend&amp;nbsp;= plot.selectAll(".legend")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.data(color.domain().slice().reverse())&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.enter().append("g")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("class", "legend")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("transform", function(d, i) { return "translate(0," + i * 20 + ")"; }); &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;legend.append("rect")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("x", width + 6 + legend_width)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("width", 18)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("height", 18) &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.style("fill", color_2)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;legend.append("text")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("x", width + 30 + legend_width)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("y", 9)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.attr("dy", ".35em")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.style("text-anchor", "start")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;.text(function(d) { return d; })&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/D3-Stacked-Bar-Chart-with-line-gt-MAKE-LEGEND-CLICKABLE-AND/m-p/1622632#M11277</guid>
      <dc:creator>Adriano</dc:creator>
      <dc:date>2024-11-16T20:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: D3 Stacked Bar Chart with line  &gt; MAKE LEGEND CLICKABLE AND FILTERABLE</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/D3-Stacked-Bar-Chart-with-line-gt-MAKE-LEGEND-CLICKABLE-AND/m-p/1622634#M11278</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;In general u can apply any filter from the code with:&lt;BR /&gt;app.field('f_name').selectValues([val], false, true);&lt;BR /&gt;&lt;BR /&gt;So u can implement that (I did it with some custom chart i had in a mashup)&lt;BR /&gt;&lt;BR /&gt;so u need to add click event to the chart legend&lt;BR /&gt;there is more small thigns to look after, like how to change selection, but it all can be done with some js code and and app field API&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 13:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/D3-Stacked-Bar-Chart-with-line-gt-MAKE-LEGEND-CLICKABLE-AND/m-p/1622634#M11278</guid>
      <dc:creator>oz_moyal</dc:creator>
      <dc:date>2019-09-11T13:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: D3 Stacked Bar Chart with line  &gt; MAKE LEGEND CLICKABLE AND FILTERABLE</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/D3-Stacked-Bar-Chart-with-line-gt-MAKE-LEGEND-CLICKABLE-AND/m-p/1622713#M11281</link>
      <description>&lt;P&gt;Thx Oz_moyal.&lt;/P&gt;&lt;P&gt;I don't use a mashup but I'm building a local app, so, where do I put the code that you passed me?&lt;BR /&gt;Is any way to do the same thing in a local app?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Adriano&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 15:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/D3-Stacked-Bar-Chart-with-line-gt-MAKE-LEGEND-CLICKABLE-AND/m-p/1622713#M11281</guid>
      <dc:creator>Adriano</dc:creator>
      <dc:date>2019-09-11T15:12:14Z</dc:date>
    </item>
  </channel>
</rss>

