<?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 Help with color in line graph/chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Help-with-color-in-line-graph-chart/m-p/1450754#M35474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I just started to use Qlik Sense and I want to personalize the colors in a line graph/chart, according to the value of the expression.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-1361224-179453/pastedImage_1.png"&gt;&lt;IMG alt="" class="jive-image image-1" height="419.4" src="https://community.qlik.com/legacyfs/online/179590_pastedImage_1.png" style="height: 419.4px; width: 724.857px;" width="724.4" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I want to change the color of the line depending on the value. If the value is lower than zero, I need one color, and if the value is higher than zero, I need another color. I only get the result of the picture, but it is not exactly what I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried two different methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Color by measure&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" height="410" src="https://community.qlik.com/legacyfs/online/179586_pastedImage_3.png" style="width: 211px; height: 410.491px;" width="211" /&gt;&lt;IMG alt="" class="jive-image image-3" height="421" src="https://community.qlik.com/legacyfs/online/179587_pastedImage_4.png" style="width: 239px; height: 420.672px;" width="239" /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Color by expression. I used this expression: =IF(ExistenciaProducto &amp;lt; 0, RGB(255, 0, 0), RGB(40, 180, 220))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table where I get the data has this structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Row Number&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date (MM/DD/YYYY)&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Movement units&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;On Inventory&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/01/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/10/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/10/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/04/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;150&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;155&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/05/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;55&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dates are not always the same, I have one row for each movement, and I can have more than one movement per day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Oct 2017 16:42:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-10-13T16:42:17Z</dc:date>
    <item>
      <title>Help with color in line graph/chart</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-color-in-line-graph-chart/m-p/1450754#M35474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I just started to use Qlik Sense and I want to personalize the colors in a line graph/chart, according to the value of the expression.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-1361224-179453/pastedImage_1.png"&gt;&lt;IMG alt="" class="jive-image image-1" height="419.4" src="https://community.qlik.com/legacyfs/online/179590_pastedImage_1.png" style="height: 419.4px; width: 724.857px;" width="724.4" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I want to change the color of the line depending on the value. If the value is lower than zero, I need one color, and if the value is higher than zero, I need another color. I only get the result of the picture, but it is not exactly what I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried two different methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Color by measure&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" height="410" src="https://community.qlik.com/legacyfs/online/179586_pastedImage_3.png" style="width: 211px; height: 410.491px;" width="211" /&gt;&lt;IMG alt="" class="jive-image image-3" height="421" src="https://community.qlik.com/legacyfs/online/179587_pastedImage_4.png" style="width: 239px; height: 420.672px;" width="239" /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Color by expression. I used this expression: =IF(ExistenciaProducto &amp;lt; 0, RGB(255, 0, 0), RGB(40, 180, 220))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table where I get the data has this structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Row Number&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date (MM/DD/YYYY)&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Movement units&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;On Inventory&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/01/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/10/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/10/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/04/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;150&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;155&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/05/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;55&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dates are not always the same, I have one row for each movement, and I can have more than one movement per day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 16:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-color-in-line-graph-chart/m-p/1450754#M35474</guid>
      <dc:creator />
      <dc:date>2017-10-13T16:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with color in line graph/chart</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-color-in-line-graph-chart/m-p/1450755#M35475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your expression --&amp;gt; IF(ExistenciaProducto &amp;lt; 0, RGB(255, 0, 0), RGB(40, 180, 220))&lt;/P&gt;&lt;P&gt;instead of ExistenciaProducto, put a expression you have used in Measure section of chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 06:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-color-in-line-graph-chart/m-p/1450755#M35475</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2017-10-16T06:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with color in line graph/chart</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-color-in-line-graph-chart/m-p/1450756#M35476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hellor, the measure I'm using is the same, ExistenciaProducto.&lt;BR /&gt;&lt;IMG alt="" class="jive-image image-1" height="411" src="https://community.qlik.com/legacyfs/online/179791_pastedImage_0.png" style="width: 178px; height: 410.769px;" width="178" /&gt;&lt;/P&gt;&lt;P&gt;Is this what you are referring to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 14:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-color-in-line-graph-chart/m-p/1450756#M35476</guid>
      <dc:creator />
      <dc:date>2017-10-16T14:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with color in line graph/chart</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-color-in-line-graph-chart/m-p/1450757#M35477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't you think it should be an aggregation expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Ex. Sum(FieldName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 11:32:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-color-in-line-graph-chart/m-p/1450757#M35477</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2017-10-17T11:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with color in line graph/chart</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-color-in-line-graph-chart/m-p/1450758#M35478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed it, "RangeSum(Above(Sum(Units), 0, RowNo()))" instead "Sum(Inventory)"&lt;/P&gt;&lt;P&gt;It works at the same way, even with this aggregation expression as the measure for the chart and for the colour condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 18:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-color-in-line-graph-chart/m-p/1450758#M35478</guid>
      <dc:creator />
      <dc:date>2017-10-17T18:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with color in line graph/chart</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-color-in-line-graph-chart/m-p/1450759#M35479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 06:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-color-in-line-graph-chart/m-p/1450759#M35479</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2017-10-18T06:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with color in line graph/chart</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-color-in-line-graph-chart/m-p/1450760#M35480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the basic structure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 19:56:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-color-in-line-graph-chart/m-p/1450760#M35480</guid>
      <dc:creator />
      <dc:date>2017-10-18T19:56:10Z</dc:date>
    </item>
  </channel>
</rss>

