<?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: Graphbuilder: Side by side bars in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graphbuilder-Side-by-side-bars/m-p/221944#M44286</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15256"&gt;@helmon&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is a strange output. What version of JMP are you using? It could have been a bug in the past. With 14.1.0, I don't seem to have that problem. However, it appears you are also trying to graph many different things, including Group X and Group Y information. This could be the reason why. Do you have to do the Group X/Y? Could you instead put in a local data filter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I tried with the TitanicPassenger.jmp file to generate a similar kind of output, but unless I specificially changed the bar graph from "side by side" to "nested" it always showed the bars side by side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Can you share the data table? You could anonymize it so no sensitive information is shared.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you could provide some more context of what kind of data (nominal/continuous) you're graphing, this might help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2019 20:42:58 GMT</pubDate>
    <dc:creator>SDF1</dc:creator>
    <dc:date>2019-08-15T20:42:58Z</dc:date>
    <item>
      <title>Graphbuilder: Side by side bars</title>
      <link>https://community.jmp.com/t5/Discussions/Graphbuilder-Side-by-side-bars/m-p/221195#M44150</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I have a graph with two Y-axis with different scales.&lt;BR /&gt;The bar style is "Side by side" but they seem to cluster together.&lt;/P&gt;&lt;P&gt;I tried to put fewer samples on the graph so there would be fewer bars but that didn´t work.&lt;/P&gt;&lt;P&gt;Any ideas of how to make them side by side and not cluttered together?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMP.png" style="width: 579px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18751i8C367BD3671A5B11/image-size/large?v=v2&amp;amp;px=999" role="button" title="JMP.png" alt="JMP.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMP2.png" style="width: 566px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18752iB0793CC181F1BBA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="JMP2.png" alt="JMP2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 16:19:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graphbuilder-Side-by-side-bars/m-p/221195#M44150</guid>
      <dc:creator>helmon</dc:creator>
      <dc:date>2019-08-09T16:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Graphbuilder: Side by side bars</title>
      <link>https://community.jmp.com/t5/Discussions/Graphbuilder-Side-by-side-bars/m-p/221944#M44286</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15256"&gt;@helmon&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is a strange output. What version of JMP are you using? It could have been a bug in the past. With 14.1.0, I don't seem to have that problem. However, it appears you are also trying to graph many different things, including Group X and Group Y information. This could be the reason why. Do you have to do the Group X/Y? Could you instead put in a local data filter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I tried with the TitanicPassenger.jmp file to generate a similar kind of output, but unless I specificially changed the bar graph from "side by side" to "nested" it always showed the bars side by side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Can you share the data table? You could anonymize it so no sensitive information is shared.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you could provide some more context of what kind of data (nominal/continuous) you're graphing, this might help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 20:42:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graphbuilder-Side-by-side-bars/m-p/221944#M44286</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2019-08-15T20:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Graphbuilder: Side by side bars</title>
      <link>https://community.jmp.com/t5/Discussions/Graphbuilder-Side-by-side-bars/m-p/222061#M44314</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I am using 14.1.0.&lt;BR /&gt;I contacted the support team - and apperently it wasn´t a one-click fix.&lt;BR /&gt;Here is the answer I got (I had 3 columns, A, B and C (%))&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;Click Tables -&amp;gt; Stack&lt;/P&gt;
&lt;P&gt;Select B (%), A (%), and C (%) and click Stack Columns&lt;/P&gt;
&lt;P&gt;I named the Stacked Data Column Data Left, but this is optional.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next we need to reformat the new data set&lt;/P&gt;
&lt;P&gt;In the dataset that opens from the stack create a new column called Data Right&lt;/P&gt;
&lt;P&gt;Copy the values from Data Left into Data Right&lt;/P&gt;
&lt;P&gt;Now for the left axis we ONLY want to include the rows from A (%), and the right axis we want ONLY B (%) and C (%)&lt;/P&gt;
&lt;P&gt;To do this I chose Rows -&amp;gt; Data Filter&lt;/P&gt;
&lt;P&gt;Then Select Label and click Add&lt;/P&gt;
&lt;P&gt;Choose A (%)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Click on the Data Right Column and press delete - thereby deleting the A (%) values from Data Right, and leaving ONLY B (%) and C (%).&lt;/P&gt;
&lt;P&gt;Return to the data filter&lt;/P&gt;
&lt;P&gt;This time select B (%) and C (%).&lt;/P&gt;
&lt;P&gt;Click on the Data Left Column and press delete - thereby deleting B (%) and C (%) values and leaving ONLY the A (%) values. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally create the graph&lt;/P&gt;
&lt;P&gt;Click on Graph -&amp;gt; Graph builder&lt;/P&gt;
&lt;P&gt;Drag Data Left and Data Right to the Y axis&lt;/P&gt;
&lt;P&gt;Drag Sample Name to the X axis&lt;/P&gt;
&lt;P&gt;Drag Label to Overlay&lt;/P&gt;
&lt;P&gt;Change points to bar&lt;/P&gt;
&lt;P&gt;Right click on the Y axis and choose Move Right -&amp;gt; Data Right&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this makes scripting a little harder now (I am trying to streamline scripts so my team can use it for their databases).&lt;/P&gt;
&lt;P&gt;I can only find the script when the new dataset comes up, which is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table( "Test for JMP" ) &amp;lt;&amp;lt; Stack(
	columns( :Name( "B (%)" ), :Name( "A (%)" ), :Name( "C (%)" ) ),
	Source Label Column( "Label" ),
	Stacked Data Column( "Data Left" )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I do the additional steps (adding column and the data filtering) – I can´t find the script for that.&lt;/P&gt;
&lt;P&gt;I only get the script out of Graph Builder – but that is only for the graph (not how you got there).&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 19:03:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graphbuilder-Side-by-side-bars/m-p/222061#M44314</guid>
      <dc:creator>helmon</dc:creator>
      <dc:date>2019-08-16T19:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Graphbuilder: Side by side bars</title>
      <link>https://community.jmp.com/t5/Discussions/Graphbuilder-Side-by-side-bars/m-p/222102#M44322</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15256"&gt;@helmon&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for the update. Is it possible to restructure your data table from the database? I'm guessing not, but that could be part of what is making life harder now. When I get data from others, I often spend more time restructuring it from the Excel source to what JMP likes to work with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Anyway,&amp;nbsp;I tested this out with the AirlineDelay.jmp file by following your description. I was able to get the following output with the script below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snap2.png" style="width: 670px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18871i6D14E144F137ECE4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snap2.png" alt="Snap2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The scripting is pretty short, and I got most of it by following the red hot button and viewing the script. I had to look a bit about how to do the formula the most efficient way, but it didn't take too awfully long. You should be able to alter the script below to get your desired output for your data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to here (1);

Data Table( "AirlineDelays" ) &amp;lt;&amp;lt; Stack(
	columns( :Elapsed Time, :Arrival Delay, :Distance ),
	Source Label Column( "Label" ),
	Stacked Data Column( "Data" )
);

Current Data Table() &amp;lt;&amp;lt; Set Name("Stackeddt");

Data Table( "Stackeddt" ) &amp;lt;&amp;lt; New Column("Distance", Numeric, "Continuous", Formula(Match( :Label, "Distance", :Data )));//this copies over only the distance data
Data Table( "Stackeddt" ) &amp;lt;&amp;lt; Select Columns("Distance") &amp;lt;&amp;lt; Delete Property("Formula");//this removes the formula property, but is probably not necessary
Data Table( "Stackeddt" ) &amp;lt;&amp;lt; New Column("Delay &amp;amp; Time", Numeric, "Continuous", Formula(Match( :Label, "Arrival Delay", :Data, "Elapsed Time", :Data )));//This copies over both the delay and time data
Data Table( "Stackeddt" ) &amp;lt;&amp;lt; Select Columns("Distance") &amp;lt;&amp;lt; Delete Property("Formula");//this removes the formula property, but is probably not necessary



Graph Builder(
	Size( 534, 448 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Airline ),
		Y( :Distance, Side( "Right" ) ),
		Y( :Name( "Delay &amp;amp; Time" ), Position( 1 ) ),
		Overlay( :Label )
	),
	Elements( Bar( X, Y( 2 ), Legend( 4 ) ), Bar( X, Y( 1 ), Legend( 5 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 19:10:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graphbuilder-Side-by-side-bars/m-p/222102#M44322</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2019-08-16T19:10:31Z</dc:date>
    </item>
  </channel>
</rss>

