<?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: layout overlay group order not consistent between barchart and scatterplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/layout-overlay-group-order-not-consistent-between-barchart-and/m-p/226057#M8182</link>
    <description>&lt;P&gt;A full working program would help. &amp;nbsp;In the meantime, the (stacked) group bar chart stacks the values provided for the same category (negative and positive on each side of the zero axis). &amp;nbsp;While a&amp;nbsp;value may be y, its position will be at (x+y) where x is the previous stack segment. &amp;nbsp;Group order will change how the values are stacked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scatter does not stack data in this manner. &amp;nbsp;So, an observation with value "y" will be placed at "y" from the axis. &amp;nbsp;Not knowing what your data set looks like it is hard to say if this is the issue. &amp;nbsp;You can try the same with a cluster bar chart (just a test). &amp;nbsp;Do you get the consistency you expect?&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2015 14:10:57 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2015-09-17T14:10:57Z</dc:date>
    <item>
      <title>layout overlay group order not consistent between barchart and scatterplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/layout-overlay-group-order-not-consistent-between-barchart-and/m-p/225914#M8179</link>
      <description>&lt;P&gt;Hi my version of SAS is 9.3. I asked a similar question a few days back regarding the position of segments of a barchart and scatterplot overlay. The issue I have is the scatterplot overlay is not in sync with the barchart y axis for a horizontal chart. I am sorting both the barchart and scatterploy y values - I tried both grouporder = data and grouporder=ascending - the results below indicate the issue. How can I make this work so that the right values get the right barcolors. er the last suggestion I went back to the data and sorted it. My issue is between the barchart ordering and the ordering of the markers using a scatterplot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="waterbar.PNG" alt="waterbar.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/158i3F7F3FF87FAE4E4B/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 18:35:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/layout-overlay-group-order-not-consistent-between-barchart-and/m-p/225914#M8179</guid>
      <dc:creator>BrianMc</dc:creator>
      <dc:date>2015-09-16T18:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: layout overlay group order not consistent between barchart and scatterplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/layout-overlay-group-order-not-consistent-between-barchart-and/m-p/225962#M8180</link>
      <description>&lt;P&gt;I would say that with Grouporder= DATA that you did not get the values into the order you that you wanted be graphing. If the the values you are showing come from part of a graphy with other bars I would expect the order to be the same as for the "first" bar. So if the range of groups changes you may not get what you're looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you summarizing the data prior to graphing or letting the chart procedure to the summarization? And some code and data example may help.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 22:17:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/layout-overlay-group-order-not-consistent-between-barchart-and/m-p/225962#M8180</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-09-16T22:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: layout overlay group order not consistent between barchart and scatterplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/layout-overlay-group-order-not-consistent-between-barchart-and/m-p/226056#M8181</link>
      <description>&lt;P&gt;The data on both the barchart and the scatterplot are coming from the same dataset. The group=type (which is a character value)&amp;nbsp; and grouporder=data. This orders the barchart segments in the order of the type column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand when&amp;nbsp;I set the scatterplot the same way (group= type and grouporder=data) using the same x,y values the order appears to be based on the X value balance, not&amp;nbsp;type. I believe this is causing the barchart and the scatterplot to be out of sync.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can send&amp;nbsp;dataset code directly if needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the segment of chart code that shows the grouporders:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;barchart&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=month &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=balance2 / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;orient&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=horizontal &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;group&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=type groupdisplay=stack &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;grouporder&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=data &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;barwidth&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;.4&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;barlabel&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=true &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;yaxis&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=y &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;barlabelattrs&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=(size=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;14&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; weight=bold color=blue) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;barlabelformat&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;dollarc.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;stat&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=sum dataskin=pressed &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;name&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'a'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; ; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;scatterplot&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;x&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=balance2 &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;y&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=month / &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;group&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=type &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;datatransparency&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;yaxis&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=y groupdisplay=overlay grouporder=data&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;markerattrs&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=(symbol=squarefilled size=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;.01&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; weight=bold) discreteoffset=-&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;.1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; DISCRETEMARKERSIZE=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;datalabel&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=balance2 datalabelposition=auto &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DATALABELATTRS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=(Color=white Size=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;10&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; Style=Italic Weight=Bold); &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 13:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/layout-overlay-group-order-not-consistent-between-barchart-and/m-p/226056#M8181</guid>
      <dc:creator>BrianMc</dc:creator>
      <dc:date>2015-09-17T13:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: layout overlay group order not consistent between barchart and scatterplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/layout-overlay-group-order-not-consistent-between-barchart-and/m-p/226057#M8182</link>
      <description>&lt;P&gt;A full working program would help. &amp;nbsp;In the meantime, the (stacked) group bar chart stacks the values provided for the same category (negative and positive on each side of the zero axis). &amp;nbsp;While a&amp;nbsp;value may be y, its position will be at (x+y) where x is the previous stack segment. &amp;nbsp;Group order will change how the values are stacked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scatter does not stack data in this manner. &amp;nbsp;So, an observation with value "y" will be placed at "y" from the axis. &amp;nbsp;Not knowing what your data set looks like it is hard to say if this is the issue. &amp;nbsp;You can try the same with a cluster bar chart (just a test). &amp;nbsp;Do you get the consistency you expect?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 14:10:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/layout-overlay-group-order-not-consistent-between-barchart-and/m-p/226057#M8182</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-09-17T14:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: layout overlay group order not consistent between barchart and scatterplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/layout-overlay-group-order-not-consistent-between-barchart-and/m-p/226081#M8183</link>
      <description>&lt;P&gt;Hi Sanjay - when I change to cluster it works! Code is coming&lt;/P&gt;&lt;P&gt;&lt;IMG title="cluster.PNG" alt="cluster.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/172i8CF3B59A2E7CE38C/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;Code is coming&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 15:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/layout-overlay-group-order-not-consistent-between-barchart-and/m-p/226081#M8183</guid>
      <dc:creator>BrianMc</dc:creator>
      <dc:date>2015-09-17T15:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: layout overlay group order not consistent between barchart and scatterplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/layout-overlay-group-order-not-consistent-between-barchart-and/m-p/226091#M8184</link>
      <description>&lt;P&gt;What this means is - to align the labels displayed by scatter plot (using your data) with stacked segments of a HBAR (which internally stacks the elements) you will have to preprocess the data to get the segments you want, and position them yourself. &amp;nbsp;Then you can draw them using a HIGHLOW plot. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See example here: &amp;nbsp;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2013/09/20/stacked-bar-chart-with-segment-labels/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2013/09/20/stacked-bar-chart-with-segment-labels/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have SAS 9.40M2, segment labels can be displayed by the HBAR itself, making this easier.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 16:43:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/layout-overlay-group-order-not-consistent-between-barchart-and/m-p/226091#M8184</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-09-17T16:43:43Z</dc:date>
    </item>
  </channel>
</rss>

