Hi,
I'm using JMP17 on Mac OS. I want to create an Interactive HTML output of two charts, one filtered to a single value "A", one filtered to everything except "A". Simplified example code is given below.
The window I get in JMP works as expected. However, the Interactive HTML doesn't: both charts are filtered for "A". I've tried a couple of different browsers with the same result (see screenshots below).
I am happy to accept the local data filters being frozen, although having them interactive would be a nice extra.
I've tried various workarounds from the community but with no luck (e.g. https://community.jmp.com/t5/Discussions/Interactive-HTML-reports-local-data-filters-not-working-in-...).
Many thanks for any help!
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << New Column( "Something",
Character, "Nominal",
Set Values(
{"A", "A", "A", "A", "X", "B", "A", "X", "B", "X", "B", "A", "X", "X", "X",
"B", "X", "A", "B", "B", "X", "A", "B", "X", "B", "A", "A", "B", "B", "B", "X",
"A", "B", "A", "X", "A", "B", "B", "A", "X"}
)
);
gb1 = Expr( Graph Builder(
Size( 400, 300 ), Show Control Panel( 0 ),
Variables( X( :sex ), Y( :height ), Overlay( :Something ) ),
Elements( Bar( X, Y, Legend( 5 ), Bar Style( "Stacked" ) ) ),
Local Data Filter( Close Outline( 1 ),
Add Filter( columns( :Something ), Where( :Something == "A" ) )
)
)
);
gb2 = Expr( Graph Builder(
Size( 400, 300 ), Show Control Panel( 0 ),
Variables( X( :sex ), Y( :height ), Overlay( :Something ) ),
Elements( Bar( X, Y, Legend( 5 ), Bar Style( "Stacked" ) ) ),
Local Data Filter( Close Outline( 1 ),
Add Filter( columns( :Something ), Where( :Something != "A" ) )
)
)
);
New Window( "WebOutput",
tb = Tab Box( tb1 = Tab Page Box( "Graph1", hlistbox(gb1, gb2) ) )
) << Save Interactive HTML("jmp_example.html");