Lorsque les options du sélecteur de colonnes sont trop longues, le graphique s'allonge. Comment pouvons-nous configurer le sélecteur de colonnes pour afficher initialement moins d'options, avec un maximum de cinq éléments ? Les utilisateurs peuvent ensuite faire défiler la page vers le bas pour trouver d'autres options. Comme le montre l'exemple ci-dessous, afficher trop d'options simultanément étend le graphique entier.
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}
)
);
Par exemple, dans l’image ci-dessus, seuls cinq éléments sont affichés, tandis que les autres sont masqués sous un menu déroulant.
Vous pouvez utiliser << Définir N Lignes

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Employee Master.jmp");
gb = dt << Graph Builder(
Size(534, 658),
Show Control Panel(0),
Variables(X(:Unique Id), Y(:Employee Id)),
Elements(Points(X, Y, Legend(3)))
);
cw = gb << 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 << Set N Lines(5);