Hi everyone,
I have multiple graphs in graph builder from multiple data tables. 2 things to note:
- They were all created using JSL.
- Most of them have been appended to a JMP window except the last one.
For some reason I am only able to highlight data on the last graph builder plot (and selected the corresponding rows in its table).
Why is that and is there any way to fix it?
Thanks.
You have not provided enough information(details) to really allow any real diagnosis. A copy of the script and an image of the output would really help
Thanks @txnelson and @Thierry_S for the reply.
Unfortunately I can't share the entire script or the plots because of NDA reasons, but I can provide more details where possible.
This is what the window looks like:
CreateResultsWindow = Function(
// Inputs
{Title},
// Local variables
{
Window, ReturnList,
OutLineBox1, BorderBox1, LineUpBox1
},
Window = NewWindow(Title,
OutLineBox1 = OutLineBox(
"Outline Box 1",
BorderBox1 = BorderBox(
Left(40), Right(40), Top(40), Bottom(40), Sides(30),
LineUpBox1 = LineUpBox(NCol(2));
);
);
);
ReturnList = {};
InsertInto(ReturnList, OutLineBox1);
InsertInto(ReturnList, LineUpBox1);
EvalList ( ReturnList );
);
I call this function multiple times for multiple types of plots and am appending to the Lineup Box like this:
Create multiple GB objects and insert them into a GB list
GB = DT << GraphBuilder(...);
InsertInto(GBList, GB);
Append them based on some value (R^2 in my case):
AppendPlotBasedOnDescendingValue(GBList, R2List, LineUpBox1);
AppendPlotBasedOnDescendingValue = Function(
// Inputs
{PlotBoxList, ValueList, AppendBox},
// Local variables
{i, RankList, ReorderedPlotBoxList},
// Vector of indices used as subscript into original list
RankList = RankIndex(ValueList);
// Reorder plots based on values
ReorderedPlotBoxList = PlotBoxList[RankList];
// Plot by descending
For(i=NItems(ReorderedPlotBoxList), i>=1, i--,
AppendBox << Append(Report(ReorderedPlotBoxList[i]));
ReorderedPlotBoxList[i] << CLoseWindow;
);
);
It gets appended correctly, but I am just not able to select/highlight on the data tables/plots.
So to your question
@Thierry_S I think I am using a graphic element (Lineup Box)
Thanks.
Hi @txnelson and @Thierry_S .
Thanks for the reply. For some reason my previous reply was marked as abuse so here is a rewrite:
Unfortunately, I can't share the entire script or the plots because of NDA but I can try to provide more details:
I am creating the windows using this function:
CreateResultsWindow = Function(
// Inputs
{Title},
// Local variables
{
Window, ReturnList,
OutLineBox1, BorderBox1, LineUpBox1
},
Window = NewWindow(Title,
OutLineBox1 = OutLineBox(
Title,
BorderBox1 = BorderBox(
Left(40), Right(40), Top(40), Bottom(40), Sides(30),
LineUpBox1 = LineUpBox(NCol(2));
);
);
);
ReturnList = {};
InsertInto(ReturnList, LineUpBox1);
EvalList ( ReturnList );
);
I then create Graph Builder objects in a for loop and add them to a list:
GB = GraphBuilder(...);
InsertInto(GBList, GB);
And then I attach them to a display object in the window (the Lineup Box) by calling this function:
AppendPlotBasedOnDescendingValue = Function(
// Inputs
{PlotBoxList, ValueList, AppendBox},
// Local variables
{i, RankList, ReorderedPlotBoxList},
// Vector of indices used as subscript into original list
RankList = RankIndex(ValueList);
// Reorder plots based on values
ReorderedPlotBoxList = PlotBoxList[RankList];
// Plot by descending
For(i=NItems(ReorderedPlotBoxList), i>=1, i--,
AppendBox << Append(Report(ReorderedPlotBoxList[i]));
ReorderedPlotBoxList[i] << CLoseWindow;
);
);I call the function with the graph builder list and a list of R^2 values.
AppendPlotBasedOnDescendingValue(GBList, R2List, LineupBox);
It works, but I am unable to select/highlight the data on the table/graph builder.
Thanks.