<?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 Re: Scatter chart - auto spacing the bubbles in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038290#M637140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I attach a .qvw file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2016 13:52:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-04-15T13:52:23Z</dc:date>
    <item>
      <title>Scatter chart - auto spacing the bubbles</title>
      <link>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038287#M637132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get a bubble chart that will not overlap the bubbles.&amp;nbsp; Instead it should space and center the bubbles.&lt;/P&gt;&lt;P&gt;And it should respect my filter (so I can't do it in the script)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, lets say I want to plot countries by continent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country / Continent&lt;/P&gt;&lt;P&gt;USA / North America&lt;/P&gt;&lt;P&gt;Canada / North America&lt;/P&gt;&lt;P&gt;Mexico / North America&lt;/P&gt;&lt;P&gt;Venezuela / South America&lt;/P&gt;&lt;P&gt;Peru / South America&lt;/P&gt;&lt;P&gt;Argentina / South America&lt;/P&gt;&lt;P&gt;Brazil / South America&lt;/P&gt;&lt;P&gt;Ecuador / South America&lt;/P&gt;&lt;P&gt;Italy / Europe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would imagine the solution would be:&lt;/P&gt;&lt;P&gt;For Spacing:&amp;nbsp; Auto numbering the countries by continent (perhaps with a combinantion of Aggr/RowNo/Range).&lt;/P&gt;&lt;P&gt;Then for Centering:&amp;nbsp; Adding (half of) the maximum count of countries per continent minus the max amount for that continent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, since there are 3 in North Am., 5 in South Am., and 1 in Europe, I would get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country / Continent / Position&lt;/P&gt;&lt;P&gt;USA / North America = 1 + 5 - (5-3)/2 = 2&lt;/P&gt;&lt;P&gt;Canada / North America = 2 + 5 - (5-3)/2 = 3&lt;/P&gt;&lt;P&gt;Mexico / North America = 3 + 5 - (5-3)/2 = 4&lt;/P&gt;&lt;P&gt;Venezuela / South America = 1 + 5 - (5-5)/2 = 1&lt;/P&gt;&lt;P&gt;Peru / South America = 2 + 5 - (5-5)/2 = 2&lt;/P&gt;&lt;P&gt;Argentina / South America = 3 + 5 - (5-5)/2 = 3&lt;/P&gt;&lt;P&gt;Brazil / South America = 4 + 5 - (5-5)/2 = 4&lt;/P&gt;&lt;P&gt;Ecuador / South America = 5 + 5 - (5-5)/2 = 5&lt;/P&gt;&lt;P&gt;Italy / Europe = 1 + 5 - (5-1)/2 = 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I can plot this on a scatter.&lt;/P&gt;&lt;P&gt;So if someone can help with that calculation, that would be great.&lt;/P&gt;&lt;P&gt;Of course I would welcome any other way to get this chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 20:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038287#M637132</guid>
      <dc:creator />
      <dc:date>2016-04-14T20:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter chart - auto spacing the bubbles</title>
      <link>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038288#M637135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really sure if I can follow what you've described here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A scatter chart will plot bubbles at numeric x/y coordinates. How do you derive x and y from above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can post a small sample QVW with a scatter chart, as far as you can get. And if possible, with a description (sketch / coordinates) to show where to exactely position the bubbbles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you just want to look into using a grid chart instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 21:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038288#M637135</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-14T21:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter chart - auto spacing the bubbles</title>
      <link>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038289#M637137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it can be done in a grid chart, great.&amp;nbsp; The part that I'm having trouble with is calculating the y axis bubble position.&amp;nbsp; I would like all my bubbles spaced out and centered--and not overlapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is an example with what I have so far (top graph), and what I want (bottom graph).&amp;nbsp; Note:&amp;nbsp; the bottom graph uses a cheat that I hardcoded into the script.&amp;nbsp; I can't use the script to calculate because I want it to recalculate based on current filters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 13:43:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038289#M637137</guid>
      <dc:creator />
      <dc:date>2016-04-15T13:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter chart - auto spacing the bubbles</title>
      <link>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038290#M637140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I attach a .qvw file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 13:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038290#M637140</guid>
      <dc:creator />
      <dc:date>2016-04-15T13:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter chart - auto spacing the bubbles</title>
      <link>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038291#M637143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And please also try to explain your expected result, I am still not understanding your issue 100%.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 17:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038291#M637143</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-15T17:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter chart - auto spacing the bubbles</title>
      <link>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038292#M637145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is the file.&amp;nbsp; I want the real graph to look like the bottom graph.&amp;nbsp; The y axis is basically a count of the maximum number of countries in the group, with each country getting a unique number within the group.&amp;nbsp; This way I can space out my bubbles so they never overlap.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 17:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038292#M637145</guid>
      <dc:creator />
      <dc:date>2016-04-15T17:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter chart - auto spacing the bubbles</title>
      <link>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038293#M637147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this using y-expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(RowNo(),ContinentID,Country)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 17:54:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038293#M637147</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-15T17:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter chart - auto spacing the bubbles</title>
      <link>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038294#M637149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That actually worked for spacing out the bubbles!!!&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;Now the next step is centering.&lt;/P&gt;&lt;P&gt;Your formula numbered North America 1,2,3 and put it at the bottom of the chart.&amp;nbsp; Since South America has 5 countries, I want North America to be numbered 2,3,4.&amp;nbsp; And Italy just to be centered at #3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we would need to add (Max count per continent - Max count for North America)/2 to each North America element.&amp;nbsp; The following seems close, but I'm just missing the last piece:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ContinentID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) +&amp;nbsp; ( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Continent&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&amp;nbsp; -&amp;nbsp; ????) / 2&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 18:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038294#M637149</guid>
      <dc:creator />
      <dc:date>2016-04-15T18:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter chart - auto spacing the bubbles</title>
      <link>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038295#M637150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(RowNo()-NoOfRows()/2,ContinentID,Country)+Max(TOTAL Aggr(Count( DISTINCT Country), ContinentID))/2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 19:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038295#M637150</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-15T19:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter chart - auto spacing the bubbles</title>
      <link>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038296#M637152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked perfectly!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extra credit:&amp;nbsp; is there anyway I can replace the number on my x axis with the Continent Name?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 19:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038296#M637152</guid>
      <dc:creator />
      <dc:date>2016-04-15T19:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter chart - auto spacing the bubbles</title>
      <link>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038297#M637154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that's not possible with a scatter chart, having numeric, continuous axes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar to a line chart's continuous axis, you are bound to number formatting using num() or using the formatting options on number tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try with some hacks like overlaying chart objects or something like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 20:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scatter-chart-auto-spacing-the-bubbles/m-p/1038297#M637154</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-15T20:59:36Z</dc:date>
    </item>
  </channel>
</rss>

