<?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 Labels in gauge chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Labels-in-gauge-chart/m-p/250886#M1186054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I THOUGHT reference lines would work, but they don't.&amp;nbsp; You can add reference lines that match up to your segment boundaries, but when I checkmark "Show Label in Chart", it does nothing.&amp;nbsp; Bug?&amp;nbsp; Working as designed?&amp;nbsp; I can add the label as text in chart and stick it where it belongs, but then it won't be positioned at the right spot if your data changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2011 19:54:24 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-09-09T19:54:24Z</dc:date>
    <item>
      <title>Labels in gauge chart</title>
      <link>https://community.qlik.com/t5/QlikView/Labels-in-gauge-chart/m-p/250885#M1186053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a gauge chart with the Min, Q1, Median, Q3 and Max segments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the graphic scale doesn't match with this statistics. It just divide the bar in 4 equal segments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ilustrate this problem please find below the attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I make the scale match to the defined segments?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 17:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Labels-in-gauge-chart/m-p/250885#M1186053</guid>
      <dc:creator />
      <dc:date>2011-09-09T17:29:56Z</dc:date>
    </item>
    <item>
      <title>Labels in gauge chart</title>
      <link>https://community.qlik.com/t5/QlikView/Labels-in-gauge-chart/m-p/250886#M1186054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I THOUGHT reference lines would work, but they don't.&amp;nbsp; You can add reference lines that match up to your segment boundaries, but when I checkmark "Show Label in Chart", it does nothing.&amp;nbsp; Bug?&amp;nbsp; Working as designed?&amp;nbsp; I can add the label as text in chart and stick it where it belongs, but then it won't be positioned at the right spot if your data changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 19:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Labels-in-gauge-chart/m-p/250886#M1186054</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-09-09T19:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Labels in gauge chart</title>
      <link>https://community.qlik.com/t5/QlikView/Labels-in-gauge-chart/m-p/250887#M1186055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, thanks for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that same problem with the reference lines...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the text labels they're not an option, because data is always updating...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 18:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Labels-in-gauge-chart/m-p/250887#M1186055</guid>
      <dc:creator />
      <dc:date>2011-09-12T18:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Labels in gauge chart</title>
      <link>https://community.qlik.com/t5/QlikView/Labels-in-gauge-chart/m-p/250888#M1186056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="margin gauge labels.png" class="jive-image image-1" src="/legacyfs/online/94599_margin gauge labels.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I know this is an old post, but I just solved using a macro with logarithmic functions to determine x, y coordinates of labels.&amp;nbsp; You need fixed object ids for gauges and text objects for labels, and variables to for the quartile values in each gauge..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub SetGaugePointPositions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GaugeObjectsList = "[TSGrossMargin],[TSEBITDAMargin],[TSOperatingMargin]"&lt;/P&gt;&lt;P&gt;GaugeObjects = Split(GaugeObjectsList, ",")&lt;/P&gt;&lt;P&gt;GaugeVarsList = "GrossMargin,EBITDAMargin,OperatingMargin"&lt;/P&gt;&lt;P&gt;GaugeVars&amp;nbsp; = Split(GaugeVarsList, ",")&lt;/P&gt;&lt;P&gt;PointsMetricsList = "LQ,Median,UQ"&lt;/P&gt;&lt;P&gt;PointMetrics&amp;nbsp; = Split(PointsMetricsList, ",")&lt;/P&gt;&lt;P&gt;for ii=LBound(GaugeObjects) to UBound(GaugeObjects)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set&amp;nbsp; MyGauge = ActiveDocument.GetSheetObject(GaugeObjects(ii))&lt;/P&gt;&lt;P&gt;&amp;nbsp; set MyGaugePos = MyGauge.GetRect&lt;/P&gt;&lt;P&gt;&amp;nbsp; GaugeLeft=MyGaugePos.Left&lt;/P&gt;&lt;P&gt;&amp;nbsp; GaugeTop=MyGaugePos.Top&lt;/P&gt;&lt;P&gt;&amp;nbsp; GaugeWidth=MyGaugePos.Width&lt;/P&gt;&lt;P&gt;&amp;nbsp; GaugeHeight=MyGaugePos.Height&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ' figure center&lt;/P&gt;&lt;P&gt;&amp;nbsp; MyCenterX=GaugeLeft+(.44*GaugeWidth)&lt;/P&gt;&lt;P&gt;&amp;nbsp; MyCenterY=GaugeTop+(.44*GaugeHeight)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'figure radius,circumference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; MyRadius=.45*GaugeWidth&lt;/P&gt;&lt;P&gt;&amp;nbsp; sCircumference=ActiveDocument.EvaluateEx("=2*pi()*"&amp;amp;MyRadius).Text&lt;/P&gt;&lt;P&gt;&amp;nbsp; sMin=ActiveDocument.EvaluateEx("=$(v"&amp;amp;GaugeVars(ii)&amp;amp;"Min)").Text&lt;/P&gt;&lt;P&gt;&amp;nbsp; sMax=ActiveDocument.EvaluateEx("=$(v"&amp;amp;GaugeVars(ii)&amp;amp;"Max)").Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for jj=LBound(PointMetrics) to UBound(PointMetrics)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sMetricValue=ActiveDocument.EvaluateEx("=$(v"&amp;amp;GaugeVars(ii)&amp;amp;PointMetrics(jj)&amp;amp;")").Text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 'figure length of segment based on percent of circumference..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sChordLength=ActiveDocument.EvaluateEx("((("&amp;amp;sMetricValue&amp;amp;"-"&amp;amp;sMin&amp;amp;")/(1.4*("&amp;amp;sMax&amp;amp;"-"&amp;amp;sMin&amp;amp;"))*"&amp;amp;sCircumference&amp;amp;")" ).text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 'figure angles in radians &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sAngle=ActiveDocument.EvaluateEx("((145+(("&amp;amp;sChordLength&amp;amp;"/"&amp;amp;sCircumference&amp;amp;")*360))*(pi()/180))").text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 'calculate x,y coordinates of lq, median, uq points&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sXPos=cint(ActiveDocument.EvaluateEx("num(("&amp;amp;cstr(MyRadius)&amp;amp;"*cos("&amp;amp;sAngle&amp;amp;"))+"&amp;amp;MyCenterX&amp;amp;",'###')").text)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sYPos=cint(ActiveDocument.EvaluateEx("num(("&amp;amp;cstr(MyRadius)&amp;amp;"*sin("&amp;amp;sAngle&amp;amp;"))+"&amp;amp;MyCenterY&amp;amp;",'###')").text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 'position lq, median, uq labels&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set MetricLabelObj = ActiveDocument.GetSheetObject("TG"&amp;amp;GaugeVars(ii)&amp;amp;PointMetrics(jj)&amp;amp;"Label")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MetricLabelObjPos = MetricLabelObj.GetRect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MetricLabelObjPos.Left=cint(sXPos)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MetricLabelObjPos.Top=cint(sYPos)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MetricLabelObj.SetRect MetricLabelObjPos&lt;/P&gt;&lt;P&gt; next&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 20:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Labels-in-gauge-chart/m-p/250888#M1186056</guid>
      <dc:creator>markdiorio_kpmg</dc:creator>
      <dc:date>2015-07-30T20:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Labels in gauge chart</title>
      <link>https://community.qlik.com/t5/QlikView/Labels-in-gauge-chart/m-p/1676022#M1186058</link>
      <description>&lt;P&gt;You’re awesome, thx a lot&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 06:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Labels-in-gauge-chart/m-p/1676022#M1186058</guid>
      <dc:creator>rasvalera</dc:creator>
      <dc:date>2020-02-16T06:49:47Z</dc:date>
    </item>
  </channel>
</rss>

