Hello all,
I'm trying to create a graph with a local data filter pre-added to it. To save a bit of time I'm also ordering the filter elements by count. I want the graph to look like this initially. As you can see the local data filter is there, and it's outline box is closed.
![7391_Local Data Filter Closed.png 7391_Local Data Filter Closed.png](https://community.jmp.com/t5/image/serverpage/image-id/865i756E43952B2D76A7/image-size/medium?v=v2&px=400)
When you open the local data filter this is what you should see. Notice that the items are ordered by count
![7392_Local Data Filter Open.png 7392_Local Data Filter Open.png](https://community.jmp.com/t5/image/serverpage/image-id/866i5F4E23221D006DF2/image-size/medium?v=v2&px=400)
When I save the script from the first graph this is the code:
dt = open("$sample_data\Bands Data.jmp");
dt << Graph Builder(
Show Control Panel( 0 ),
Variables( X( :timestamp ), Y( :viscosity ), Overlay( :customer ) ),
Elements( Points( X, Y, Legend( 1 ), Jitter( 1 ) ) ),
Local Data Filter(
Location( {399, 178} ),
Mode( Select( 0 ), Show( 1 ), Include( 1 ) ),
Add Filter(
columns( :customer ),
Display( :customer, Size( 204, 194 ), List Display ),
Order By Count( :customer )
)
)
);
However when I run the script the local data filter outline box is open, and the items are not ordered by count:
![7393_Local Data Filter from Script.png 7393_Local Data Filter from Script.png](https://community.jmp.com/t5/image/serverpage/image-id/867iCE85E97A7941DD5E/image-size/medium?v=v2&px=400)
So my questions are these:
1. Is there a way to close the outline box holding the local data filter upon first display of the graph?
2. Why isn't order by count working?
Thanks!