I get a lot of data in a CSV file (many columns, many rows) and am working on a basic template in JSL to standardise the generation of graphs. (Rescaling the axes, renaming the axes, standardising the colour of the lines etc...) On the average I can get one CSV file per day so I want to put the data into a JMP Data table, run the script and have the graph output all automated.
My JMP file has by default the tag names as column headers which are not at all informative as a graph legend. One way around might be to rename all the columns but I would prefer to keep the tag names and therefore directly manipulate the text in the Legend Settings. (But done with JSL, not manually.)
I can easily access the legend box, for example:
gbR = gb << Report; // gbR << Show Tree Structure;
s = gbR[legendbox(1)];
s << Set Title("new title");In the attached PNG you see the idea.
Where I am now stuck is how to access the text in the legend box (except for the title) so I can manipulate it and change it using JSL.
I see that the script generated by graph builder speaks of "Legend model" and "Level name" but I've no success in the numerous things I've tried.
Any guidance on this would be most appreciated.
As said, using JSL, how to access the legend text to change it from its default?
Thanks.