schede delle finestre con legenda attivaCiao,
il mio script crea una finestra con una nuova scheda per ogni grafico di tendenza bivariata, il mio problema è che la legenda è inattiva.
il mio obiettivo finale è riuscire a evidenziare i gruppi di legende in HTML interattivo.
Ho provato ad aggiungere un filtro dati locale e non ha funzionato.
Ho anche provato ad aggiungere lo stesso grafico di distribuzione della lagend.
Mi piace avere più idee o approfondimenti su cosa sto facendo di sbagliato.
names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
NW = New Window( "new window", Text Box( "Creation Date: " || Substitute( Format( Today(), "ddMonyyyy h:m:s" ), "-", ":" ) ), tb = tab Box() );
sex_list = Associative Array( :sex ) << Get Keys;
For( i = 1, i <= N items( sex_list ), i++,
dt << Clear Row States;
dt << Select Where( :sex == sex_list[i] ) << Invert Row Selection << Hide and Exclude;
dt << clear select;
// create trend chart with limits
Biv = dt << Bivariate(
Y( :height ),
X( :weight ),
/* By( :Var ),
Local Data Filter(
Mode( Include( 0 ) ),
Add Filter( columns( :CHAMBER ), Display( :CHAMBER) )
),*/
SendToReport(
Dispatch(
{},
"Bivar Plot",
FrameBox,
{Frame Size( 1000, 300 ), Row Legend(
name,
Color( 1 ),
Color Theme( "JMP Default"(1) ),
Marker( 1 ),
Marker Theme( "Standard" )
)}
)
)
);
Dis = dt << Distribution( Nominal Distribution( Column( :name ), Frequencies( 0 ) ) );
tb << Append( Char(Sex_list[i]) , H list box(Report( Dis ), Report( Biv )));
Biv << Close window;
Dis << Close window;
);
NW << save Interactive HTML( SaveDirectory || "new window.htm" ) << close window;
dt << close window;
Re: schede della finestra con lagend attivaAggiungi solo il report alla nuova finestra e questo non è interattivo (ci sono due "livelli" nelle piattaforme JMP). Puoi ottenere un po' di interattività aggiungendo le piattaforme MA la legenda non sarà interattiva
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/big class.jmp");
NW = New Window("new window",
Text Box("Creation Date: " || Substitute(Format(Today(), "ddMonyyyy h:m:s"), "-", ":")),
tb = Tab Box()
);
sex_list = Associative Array(:sex) << Get Keys;
For(i = 1, i <= N Items(sex_list), i++,
dt << Clear Row States;
dt << Select Where(:sex == sex_list[i]) << Invert Row Selection << Hide and Exclude;
dt << clear select;
biv_expr = Expr(dt << Bivariate(
Y(:height),
X(:weight),
SendToReport(
Dispatch({}, "Bivar Plot", FrameBox,
{Frame Size(1000, 300), Row Legend(
name,
Color(1),
Color Theme("JMP Default"(1)),
Marker(1),
Marker Theme("Standard")
)}
)
)
));
dist_expr = Expr(dt << Distribution(Automatic Recalc(1), Nominal Distribution(Column(:name), Frequencies(0))));
tb << Append(
Char(Sex_list[i]),
H List Box(
dist_expr,
biv_expr
)
);
);
nw << Save Interactive HTML("$TEMP/deleteme.html");
Close(dt, no save);
Web("$TEMP/deleteme.html");
Write();
Se hai JMP18 e usi Graph Builder per creare il tuo grafico a dispersione, penso che puoi ottenere una legenda interattiva con un piccolo lavoro extra (usa gli stati delle righe dei marcatori e poi usa la stessa colonna come sovrapposizione/colore in Graph Builder)