<?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: How to set a limit on the number of options displayed in the Column Switcher, with the rest accessible via scrolling? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-set-a-limit-on-the-number-of-options-displayed-in-the/m-p/848121#M102327</link>
    <description>&lt;P&gt;You can use &amp;lt;&amp;lt; Set N Lines&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1742198014967.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73937i9AD0BF67404B186A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1742198014967.png" alt="jthi_0-1742198014967.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Employee Master.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(534, 658),
	Show Control Panel(0),
	Variables(X(:Unique Id), Y(:Employee Id)),
	Elements(Points(X, Y, Legend(3)))
);

cw = gb &amp;lt;&amp;lt; Column Switcher(
	:Employee Id,
	{:Employee Id, :Job Code, :Position Code, :Intorg Hr, :Intorg Mgr, :Employee Name,
	:Address Line1, :Address Line2, :City, :State, :Citizenship Country, :Gender, :Gender Code,
	:Ethnicity Code, :Marital Status Code, :Minority Flag, :County, :Postal Code,
	:Valid From Date, :Hire Date, :Start Date, :Employee Number, :Birth Date, :Disability Flag,
	:Military Exp Date, :Minimum Amt, :Midpoint Amt, :Maximum Amt, :Pay Level Type,
	:Manager Name, :Intorg Hr1, :Mnmlev1, :Mnmlev2, :Mnmlev3, :Manager Id, :Job Title Txt,
	:Job Group Code, :Job Group Desc, :EEO Class Code, :Emp Level, :Exempt Status Code,
	:Employee Type Code, :Hours Per Week, :Employee Status Code, :Performance,
	:Disciplinary Action Flag, :FLSA Status Code, :Hourly Salary, :Monthly Salary,
	:Annual Salary, :Annual Salary Z, :Payroll, :Comratio, :Age, :Over40, :Age Range,
	:Yrs Of Service, :Length Of Service}
);

cw &amp;lt;&amp;lt; Set N Lines(5);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Mar 2025 07:54:39 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-03-17T07:54:39Z</dc:date>
    <item>
      <title>How to set a limit on the number of options displayed in the Column Switcher, with the rest accessible via scrolling?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-a-limit-on-the-number-of-options-displayed-in-the/m-p/848109#M102325</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When the alternatives for the column switcher are too long, it elongates the length of the graph. How can we set the column switcher to initially display fewer options, showing a maximum of only 5 items? Users can then scroll down to find more options if they want. As shown in the example below, displaying too many options at once stretches the entire chart.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Employee Master.jmp" );

Graph Builder(
	Size( 534, 658 ),
	Show Control Panel( 0 ),
	Variables( X( :Unique Id ), Y( :Employee Id ) ),
	Elements( Points( X, Y, Legend( 3 ) ) ),
	Column Switcher(
		:Employee Id,
		{:Employee Id, :Job Code, :Position Code, :Intorg Hr, :Intorg Mgr, :Employee Name, :Address Line1,
		:Address Line2, :City, :State, :Citizenship Country, :Gender, :Gender Code, :Ethnicity Code,
		:Marital Status Code, :Minority Flag, :County, :Postal Code, :Valid From Date, :Hire Date, :Start Date,
		:Employee Number, :Birth Date, :Disability Flag, :Military Exp Date, :Minimum Amt, :Midpoint Amt,
		:Maximum Amt, :Pay Level Type, :Manager Name, :Intorg Hr1, :Mnmlev1, :Mnmlev2, :Mnmlev3, :Manager Id,
		:Job Title Txt, :Job Group Code, :Job Group Desc, :EEO Class Code, :Emp Level, :Exempt Status Code,
		:Employee Type Code, :Hours Per Week, :Employee Status Code, :Performance, :Disciplinary Action Flag,
		:FLSA Status Code, :Hourly Salary, :Monthly Salary, :Annual Salary, :Annual Salary Z, :Payroll,
		:Comratio, :Age, :Over40, :Age Range, :Yrs Of Service, :Length Of Service}
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BabyDoragon_0-1742197635120.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73936i377B5E90FF121725/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BabyDoragon_0-1742197635120.png" alt="BabyDoragon_0-1742197635120.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example, in the above image, only five items are displayed, while the rest are hidden beneath a scroll menu.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 07:48:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-a-limit-on-the-number-of-options-displayed-in-the/m-p/848109#M102325</guid>
      <dc:creator>BabyDoragon</dc:creator>
      <dc:date>2025-03-17T07:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a limit on the number of options displayed in the Column Switcher, with the rest accessible via scrolling?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-a-limit-on-the-number-of-options-displayed-in-the/m-p/848121#M102327</link>
      <description>&lt;P&gt;You can use &amp;lt;&amp;lt; Set N Lines&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1742198014967.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73937i9AD0BF67404B186A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1742198014967.png" alt="jthi_0-1742198014967.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Employee Master.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(534, 658),
	Show Control Panel(0),
	Variables(X(:Unique Id), Y(:Employee Id)),
	Elements(Points(X, Y, Legend(3)))
);

cw = gb &amp;lt;&amp;lt; Column Switcher(
	:Employee Id,
	{:Employee Id, :Job Code, :Position Code, :Intorg Hr, :Intorg Mgr, :Employee Name,
	:Address Line1, :Address Line2, :City, :State, :Citizenship Country, :Gender, :Gender Code,
	:Ethnicity Code, :Marital Status Code, :Minority Flag, :County, :Postal Code,
	:Valid From Date, :Hire Date, :Start Date, :Employee Number, :Birth Date, :Disability Flag,
	:Military Exp Date, :Minimum Amt, :Midpoint Amt, :Maximum Amt, :Pay Level Type,
	:Manager Name, :Intorg Hr1, :Mnmlev1, :Mnmlev2, :Mnmlev3, :Manager Id, :Job Title Txt,
	:Job Group Code, :Job Group Desc, :EEO Class Code, :Emp Level, :Exempt Status Code,
	:Employee Type Code, :Hours Per Week, :Employee Status Code, :Performance,
	:Disciplinary Action Flag, :FLSA Status Code, :Hourly Salary, :Monthly Salary,
	:Annual Salary, :Annual Salary Z, :Payroll, :Comratio, :Age, :Over40, :Age Range,
	:Yrs Of Service, :Length Of Service}
);

cw &amp;lt;&amp;lt; Set N Lines(5);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 07:54:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-a-limit-on-the-number-of-options-displayed-in-the/m-p/848121#M102327</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-03-17T07:54:39Z</dc:date>
    </item>
  </channel>
</rss>

