<?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: Graph Builder: hide  X categories with no data in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/210408#M42133</link>
    <description>Hi Anne,&lt;BR /&gt;I see your problem now and am still taking a look at it.  I believe this one will take a little coding.</description>
    <pubDate>Thu, 23 May 2019 19:17:51 GMT</pubDate>
    <dc:creator>geoffrey_mann</dc:creator>
    <dc:date>2019-05-23T19:17:51Z</dc:date>
    <item>
      <title>Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/209809#M42064</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with a grouping column and several response variables.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Test",
	Add Rows( 7 ),
	New Column( "GROUP",
		Character,
		"Nominal",
		Set Values( {"a", "b", "c", "d", "e", "f", "g"} )
	),
	New Column( "Y",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [7, ., 6, ., 4, ., 2] )
	),
	New Column( "Y 2",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [7, 6, 2, 3, ., ., .] ),
		Set Display Width( 49 )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I would like to create a bar chart with a column switcher.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 527, 448 ),
	Show Control Panel( 0 ),
	Variables(
		X( :GROUP, Order By( :Y, Ascending, Order Statistic( "Mean" ) ) ),
		Y( :Y )
	),
	Elements( Bar( X, Y, Legend( 4 ) ) ),
	Column Switcher( :Y, {:Y, :Y 2} )
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My problem is that I do not want to display levels with no data. In other words, I do not want to see levels "b", "d" and "f" for Y and levels "e", "f", "g" for Y2.&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="Image1.png" style="width: 766px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17362i8BA7CA5F300E175C/image-dimensions/766x486?v=v2" width="766" height="486" role="button" title="Image1.png" alt="Image1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use a "where" clause but unfortunately it is not taken into acount by the Column Switcher.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any idea of how we could do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 12:30:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/209809#M42064</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2019-05-22T12:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/209835#M42071</link>
      <description>&lt;P&gt;Hi Anne,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your idea that you need a "where" clause or rather a filter of some sort is correct. &amp;nbsp;Try adding the following line to your graphbuilder script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Local Data Filter( Add Filter( columns( :Y ), Where( :Y &amp;gt;= 2 &amp;amp; :Y &amp;lt;= 7 ) ) )
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am hoping that a Local Data Filter is okay?&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;Graph Builder(
	Size( 527, 448 ),
	Show Control Panel( 0 ),
	Variables(
		X( :GROUP, Order By( :Y, Ascending, Order Statistic( "Mean" ) ) ),
		Y( :Y )
	),
	Elements( Bar( X, Y, Legend( 4 ) ) ),
	Column Switcher( :Y, {:Y, :Y 2} ),
	Local Data Filter( Add Filter( columns( :Y ), Where( :Y &amp;gt;= 2 &amp;amp; :Y &amp;lt;= 7 ) ) )

);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 14:41:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/209835#M42071</guid>
      <dc:creator>geoffrey_mann</dc:creator>
      <dc:date>2019-05-22T14:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/209837#M42073</link>
      <description>&lt;P&gt;Thanks for your answer &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6884"&gt;@geoffrey_mann&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Unfortunately is it not exactly what I would like to get because when I select a new column with the column switcher, the local data filter is still based on Y.&lt;/P&gt;&lt;P&gt;Of course it is possible to manually change the local data filter but since I can have a quite high number of variables, it would be great to have an automatic way to do that :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 14:56:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/209837#M42073</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2019-05-22T14:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/210408#M42133</link>
      <description>Hi Anne,&lt;BR /&gt;I see your problem now and am still taking a look at it.  I believe this one will take a little coding.</description>
      <pubDate>Thu, 23 May 2019 19:17:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/210408#M42133</guid>
      <dc:creator>geoffrey_mann</dc:creator>
      <dc:date>2019-05-23T19:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/210410#M42134</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/750"&gt;@anne_sa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As you discovered, Graph Builder observes those categories of your grouping variable and really will insist on plotting them (which is usually a good thing) since it assumes you find value in them since you kept them in your table. In your case with the column switcher, it's not as simple as just deleting those rows since for your other column data do exist. One solution is restructuring your data so that those missing rows can be eliminated. I would do this by stacking:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tables &amp;gt; Stack&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2019-05-23 at 3.16.00 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17414i8685967BBE3116FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2019-05-23 at 3.16.00 PM.png" alt="Screen Shot 2019-05-23 at 3.16.00 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table( "Test" ) &amp;lt;&amp;lt; Stack(
	columns( :Y, :Y 2 ),
	Source Label Column( "Label" ),
	Stacked Data Column( "Data" )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will return a table like below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-05-23 at 3.16.39 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17415i05ABD401BA2850D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2019-05-23 at 3.16.39 PM.png" alt="Screen Shot 2019-05-23 at 3.16.39 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Remove the missing values by right-clicking any of the cells that are missing &amp;gt; select matching. Then, delete those rows. This returns the attached table. Now, make your graph but use a local data filter rather than a column switcher to select what previously was a response from your Label Column:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :GROUP ), Y( :Data ) ),
	Elements( Bar( X, Y, Legend( 4 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :Label ),
			Where( :Label == "Y" ),
			Display( :Label, Size( 160, 17 ) )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ldf.gif" style="width: 874px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17416iF14E7BB8FCBC5869/image-size/large?v=v2&amp;amp;px=999" role="button" title="ldf.gif" alt="ldf.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Since there are no missing rows, Graph Builder displays only those levels of Group that are populated with data.&amp;nbsp; You can, of course, generalize this to any number of levels of Y -- simply stack all of them in the initial step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 19:22:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/210410#M42134</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2019-05-23T19:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/210462#M42147</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp; for this suggestion! Indeed it allows to display only levels with data.&lt;/P&gt;&lt;P&gt;The only problem (but maybe I ask too much)&amp;nbsp; is that we lose the link between rows. For instance if I select the level "a" for Y and if I want to see the corresponding value for Y2, nothing is highlighted when I select Y2 with the local data filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe coding the expected behavior is the solution...&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 10:59:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/210462#M42147</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2019-05-24T10:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/210465#M42148</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/750"&gt;@anne_sa&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I see just what you mean. It really might come down to coding up something custom, but let me take one more interactive stab at this. Are there always only four levels (albeit different levels) of Group for each Y? If so, here's a potential hack: Graph Builder will maintain the X axis upon column switching, and since you have your levels ordered ascending (thus blank levels are always at the end), we could adjust the axis so that only four levels are showing. You can do this in the axis settings (right click the axis &amp;gt; axis settings), or just by dragging out the end of the axis until the missing levels are hidden).&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :GROUP, Order By( :Y, Ascending, Order Statistic( "Mean" ) ) ), Y( :Y ) ),
	Elements( Bar( X, Y, Legend( 4 ) ) ),
	Column Switcher( :Y, {:Y, :Y 2} ),
	SendToReport( Dispatch( {}, "GROUP", ScaleBox, {Min( -0.5 ), Max( 3.5 ), Inc( 1 ), Minor Ticks( 0 )} ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="resize.gif" style="width: 794px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17424i9EB3D637716D6E5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="resize.gif" alt="resize.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe a potential solution in your case?&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 12:30:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/210465#M42148</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2019-05-24T12:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/210672#M42171</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;I really appreciate your efforts to solve my problem! Unfortunately, the number of non-missing levels can be different from one response variable to the next one. However, your last post can definitely be used for the “coding solution”. Changing the axis settings based on the level number is indeed a nice way to display what is expected. I will work in that direction. Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 06:49:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/210672#M42171</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2019-05-27T06:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/211191#M42285</link>
      <description>&lt;P&gt;Hi Anne,&lt;/P&gt;
&lt;P&gt;I wanted to check back with you to see if you have found a coding solution to your problem. &amp;nbsp;It took me a while to find the time but I have a coding solution if you still need one.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 13:33:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/211191#M42285</guid>
      <dc:creator>geoffrey_mann</dc:creator>
      <dc:date>2019-05-30T13:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/211524#M42373</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6884"&gt;@geoffrey_mann&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written something to basically update the column switcher and change the axis setting (as suggested by &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt; ) each time we select a new variable. However it may not be very efficient so of course I am very interested by your solution!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 07:49:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/211524#M42373</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2019-06-03T07:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/211884#M42430</link>
      <description>&lt;P&gt;Hi again&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/750"&gt;@anne_sa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Sorry for the delay, I actually caught the flu for a few days and got behind a little.&lt;/P&gt;
&lt;P&gt;I have attached two files. &amp;nbsp;The first jsl file (Example Script for Changing row states.jsl) is the driver file and the path in the second line is the full path of the location that you place the second file (GraphBuilderJSLAPI.jsl).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Include script to modify GraphBuilder with some special functions defined
include(ConvertFilePath("/Users/gemann/Projects/Prototypes/JSLClasses/GraphBuilderJSLAPI.jsl", absolute, windows));

//Create a sample table
dt = New Table( "Test",
	Add Rows( 7 ),
	New Column( "GROUP",
		Character,
		"Nominal",
		Set Values( {"a", "b", "c", "d", "e", "f", "g"} )
	),
	New Column( "Y",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [7, ., 6, ., 4, ., 2] )
	),
	New Column( "Y 2",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [7, 6, 2, 3, ., ., .] ),
		Set Display Width( 49 )
	)
);

//Add a new window and build a listbox beside a graphbuilder
New Window( "CustomColumnSwitcher Window",
	//Start by getting all of the columns in the current datatable
	CNames = dt &amp;lt;&amp;lt; Get Column Names( Numeric );
	Show( CNames );

	//User a horizontal layout
	HListBox(
		//Use a ListBox as the new Column Switcher
		lb = List Box( 
			CNames, 
			maxSelected(1),
			//The next lines specify the script that gets run when an item in listbox is selected
			dt &amp;lt;&amp;lt; clearrowstates();
			newvarname = lb&amp;lt;&amp;lt;getselected();
			ReplaceGBXVariable(gb,"GROUP",newvarname);
			ReplaceGBYVariable(gb,newvarname);
			rs = dt &amp;lt;&amp;lt; select where( IsMissing( Column(newvarname)[] ) );  
			dt &amp;lt;&amp;lt; exclude();
		),
		//Build the original GraphBuilder
		gb = Graph Builder(
			Size( 527, 448 ),
			Show Control Panel( 0 ),
			Variables(
				X( :GROUP, Order By( :Y, Ascending, Order Statistic( "Mean" ) ) ),
				Y( :Y )
			),
			Elements( Bar( X, Y, Legend( 4 ) ) )
		);
		
		// This line is added for the special case of filtering values that are missing from the graph
		rs = currentdatatable() &amp;lt;&amp;lt; select where(IsMissing(:Y));  
		dt &amp;lt;&amp;lt; exclude();
	);
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Good luck and let me know if you have any issues. &amp;nbsp;Of course these files are not fully tested!!! &amp;nbsp;:)&lt;/img&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 02:33:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/211884#M42430</guid>
      <dc:creator>geoffrey_mann</dc:creator>
      <dc:date>2019-06-05T02:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/212046#M42456</link>
      <description>&lt;P&gt;It'd be cool if column switch has a &amp;lt;&amp;lt;Set Function() message, so you could get full capability out of it while still being able to add on to it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 22:17:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/212046#M42456</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2019-06-05T22:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/212286#M42494</link>
      <description>&lt;P&gt;Thank you very much for these scripts &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6884"&gt;@geoffrey_mann&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is definitely cleaner than what I did!&lt;/P&gt;&lt;P&gt;There is just one thing that I would like to adapt: each time we select a new variable in the list box, the row status are reset. Thus if some points have been labelled / excluded / colored... we will loose this information and it can be annoying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Otherwise it matches my expectations so thanks again!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 08:39:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/212286#M42494</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2019-06-07T08:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/212287#M42495</link>
      <description>&lt;P&gt;&amp;nbsp;I totally agree with you &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2610"&gt;@vince_faller&lt;/a&gt;, it would be a very nice feature :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;I think I will add it to the JMP Wish List!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 08:41:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/212287#M42495</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2019-06-07T08:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/212410#M42528</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/750"&gt;@anne_sa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm so glad this helped. &amp;nbsp;It is something I have wanted to do for a while and you gave me the motivation. &amp;nbsp;:)&lt;/img&gt;&lt;/P&gt;
&lt;P&gt;Also, I agree with you and&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2610"&gt;@vince_faller&lt;/a&gt;&amp;nbsp;that a listener or a way to custom behavior around column switcher would be generally useful to those programming their own addins or changing behavior. &amp;nbsp;We do this all of the time in JMP Clinical and JMP Genomics, which is why I gave credit to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5937"&gt;@kelci_miclaus&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4867"&gt;@drewfoglia&lt;/a&gt;&amp;nbsp;for the code I borrowed.&lt;/P&gt;
&lt;P&gt;If only we knew a JMP product manager who could help make this happen. &amp;nbsp;:)&lt;/img&gt; &amp;nbsp;Please both of you vote for the feature and it will help with the justification.&lt;/P&gt;
&lt;P&gt;As to the final changes, you should have control in your wrapper code you wrote. &amp;nbsp;The API calls are simply meant to replace the X and Y variables. &amp;nbsp;I will keep adding to these functions to help programmers simplify wrapping GraphBuilder so that they may build addins faster. &amp;nbsp;What I am trying to say here is only add functios to update GraphBuilder in the API file so that any "driver" file you use has the selection behavior. &amp;nbsp;Note that I could have put the dt &amp;lt;&amp;lt; clearrowstates(); call below the ReplaceGB... calls to organize the changing of row states to the table in one place. &amp;nbsp;Also note that this code is modifying the row states of the main data table instead of using a local filter to modify the GraphBuilder report. &amp;nbsp;You may want to change your approach if you want multiple reports of the data table. &amp;nbsp;But these are just notes and intended as extra information for the future apps you may build with JMP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice the clearrowstates in your driver file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;			dt &amp;lt;&amp;lt; clearrowstates();
			newvarname = lb&amp;lt;&amp;lt;getselected();
			ReplaceGBXVariable(gb,"GROUP",newvarname);
			ReplaceGBYVariable(gb,newvarname);
			rs = dt &amp;lt;&amp;lt; select where( IsMissing( Column(newvarname)[] ) );  
			dt &amp;lt;&amp;lt; exclude();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Based on my "simplistic" understanding of what you are trying to do I recommend you simply replace dt &amp;lt;&amp;lt; clearrowstates(); with&amp;nbsp;dt &amp;lt;&amp;lt; &lt;SPAN&gt;unexclude&lt;/SPAN&gt;(); &amp;nbsp;Let me know if that is the behavior that you prefer or if it is more complex than that.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2019 17:10:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/212410#M42528</guid>
      <dc:creator>geoffrey_mann</dc:creator>
      <dc:date>2019-06-08T17:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/212611#M42566</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6884"&gt;@geoffrey_mann&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your involvement and the additional informations.&lt;/P&gt;&lt;P&gt;I will start advertising the feature to my colleagues to get votes! :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the script, I prefer not affecting the current table so I think the local data filter is a good option! I will explore this possibility deeper.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 15:55:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/212611#M42566</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2019-06-11T15:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/925602#M108370</link>
      <description>&lt;P&gt;It is an older post but still this might addd some help:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you may use in addition a local data filter with select missing and inverse for the respective Y.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	Local Data Filter(
		Inverse( 1 ),
		Add Filter( columns( :Y1, :Y2 ), Select Missing( :Y2 ) )
	),
	Column Switcher( :Y2, {:Y1, :Y2, :Y3} )
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could in addition add an event for the event when selecting another level of the column switcher, which then changes the local data switcher filter setting for all your Y variables of interest. Might be overengineered, but could work.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 23:13:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/925602#M108370</guid>
      <dc:creator>martindemel</dc:creator>
      <dc:date>2026-01-22T23:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: hide  X categories with no data</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/925674#M108380</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2742"&gt;@martindemel&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your message. Although it's quite an old post it's always great to dsicover different ways to reach the same objective.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2026 13:20:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-hide-X-categories-with-no-data/m-p/925674#M108380</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2026-01-23T13:20:19Z</dc:date>
    </item>
  </channel>
</rss>

