<?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 Google Chart API Map in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Google-Chart-API-Map/m-p/175586#M43953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, thanks you very much for your help!&lt;/P&gt;&lt;P&gt;Everything back in its rightful place now&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/0726.UK-Counties-map-fixed.PNG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/0726.UK-Counties-map-fixed.PNG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lewis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2011 23:37:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-23T23:37:43Z</dc:date>
    <item>
      <title>Google Chart API Map</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Chart-API-Map/m-p/175584#M43951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm hoping that someone may be able to help me with this?&lt;/P&gt;&lt;P&gt;I've taken a previous example from Robs Cookbook where he had integrated QlikView with the old Google Chart API as i was interested to see if i could make use of the county data that the new map chart allows you to gain access to for the UK.&lt;/P&gt;&lt;P&gt;So far this is what i have achieved.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3888_sourceID:3888" /&gt;&lt;/P&gt;&lt;P&gt;My problem is that although i have most of it working i'm struggling to get the text boxes for each county in the right place.&lt;/P&gt;&lt;P&gt;What i'm trying to achieve in the line below that i have got in my expression that is calling the API is to pass in a string with all the text information concatenated together. Now i have got it doing that but the problem i have got is that the text string must pass each text string in with a sequential number for how it is loading each row starting from '0' .&lt;/P&gt;&lt;P&gt;I'm trying to use fieldIndex('State', State) but that is not really doing what i want it to. The sequence numbers i have got so far are 1,2,3,4,5,6,7 so basically all my text boxes are once county off based on the data values being passed in&lt;/P&gt;&lt;P&gt;&amp;amp; '&amp;amp;chm=' &amp;amp; concat(DISTINCT 'fGB-' &amp;amp; State &amp;amp; ' Sales:' &amp;amp; Sales &amp;amp; ',000000,0,' &amp;amp; fieldIndex('State', State) &amp;amp; ',15', '|', fieldIndex('State', State))&lt;/P&gt;&lt;DIV&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3889_sourceID:3889" /&gt;&lt;/DIV&gt;&lt;P&gt;Above is the full string that i'm creating as from the following expression -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='http://chart.googleapis.com/chart?&amp;amp;cht=map'&lt;/P&gt;&lt;P&gt;&amp;amp; '&amp;amp;chs=600x480' /* Chart size */&lt;/P&gt;&lt;P&gt;//&amp;amp; '&amp;amp;chld=GB-NTH|GB-BIR|GB-KEC' /* Country or County */&lt;/P&gt;&lt;P&gt;&amp;amp; '&amp;amp;chld=' &amp;amp; concat(DISTINCT 'GB-'&amp;amp; State, '|', fieldIndex('State', State))&lt;/P&gt;&lt;P&gt;&amp;amp; '&amp;amp;chdl=' &amp;amp; concat(DISTINCT 'GB-'&amp;amp; State, '|', fieldIndex('State', State)) /* Legend */&lt;/P&gt;&lt;P&gt;&amp;amp; '&amp;amp;chco=B3BCC0|5781AE|FF0000|FFC726|885E80|518274' /* Color for no value */&lt;/P&gt;&lt;P&gt;&amp;amp; '&amp;amp;chtt=Test+Google+API+Map+Chart' /* Chart Title */&lt;/P&gt;&lt;P&gt;&amp;amp; '&amp;amp;chm=' &amp;amp; concat(DISTINCT 'fGB-' &amp;amp; State &amp;amp; ' Sales:' &amp;amp; Sales &amp;amp; ',000000,0,' &amp;amp; fieldIndex('State', State) &amp;amp; ',15', '|', fieldIndex('State', State))&lt;/P&gt;&lt;P&gt;&amp;amp; '&amp;amp;chma=10,110,10,10' /* Chart margins */&lt;/P&gt;&lt;P&gt;//&amp;amp; '&amp;amp;chf=bg,s,c6eff7' /* CBackground Colour */&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Any help would be greatly appreciated? I've attached what i have done so far in the QVW&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;Lewis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 04:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Chart-API-Map/m-p/175584#M43951</guid>
      <dc:creator />
      <dc:date>2011-03-23T04:01:18Z</dc:date>
    </item>
    <item>
      <title>Google Chart API Map</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Chart-API-Map/m-p/175585#M43952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;space-cadet wrote:I'm trying to use fieldIndex('State', State) but that is not really doing what i want it to&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Sounds like you need to subtract one from your sequence#. The syntax for doing that in your string concatenation would be:&lt;/P&gt;&lt;P&gt;text(fieldIndex('State', State)-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 21:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Chart-API-Map/m-p/175585#M43952</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-03-23T21:10:10Z</dc:date>
    </item>
    <item>
      <title>Google Chart API Map</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Chart-API-Map/m-p/175586#M43953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, thanks you very much for your help!&lt;/P&gt;&lt;P&gt;Everything back in its rightful place now&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/0726.UK-Counties-map-fixed.PNG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/0726.UK-Counties-map-fixed.PNG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lewis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 23:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Chart-API-Map/m-p/175586#M43953</guid>
      <dc:creator />
      <dc:date>2011-03-23T23:37:43Z</dc:date>
    </item>
    <item>
      <title>Google Chart API Map</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Chart-API-Map/m-p/175587#M43954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice piece of work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 17:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Chart-API-Map/m-p/175587#M43954</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-03-24T17:00:31Z</dc:date>
    </item>
    <item>
      <title>Google Chart API Map</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Chart-API-Map/m-p/175588#M43955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi space-cadet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell me how you did this as I am also incorporating Google maps in my QV docs. &lt;/P&gt;&lt;P&gt;&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, 28 Oct 2011 08:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Chart-API-Map/m-p/175588#M43955</guid>
      <dc:creator />
      <dc:date>2011-10-28T08:53:02Z</dc:date>
    </item>
  </channel>
</rss>

