Hi - I want to change the style of the Graph Builder's box-and-whisker plot to a plot of points from within a JSL script. The Graph Builder initially includes an Elements statement that looks like this:
Elements( Box Plot( Y, Legend( 9 ) ) ),
I therefore want to modify that statement from within JSL to:
Elements( Points( Y, Legend( 9 ) ) ),
I've found the << Add Element, << Update Element and << Remove Element commands for the GraphBuilderBox within the Scripting Index, but I can't work out how to apply them to achieve the effect I want. The example given in the Index (adding a regression line) doesn't directly relate to my situation, but I'm guessing that I need something like the following, where gb is my Graph Builder object:
report(gb)[GraphBuilderBox(1)] << Update Element(1, 1, 1, {Type("Points"), Y})
This evidently isn't right however - so I just need an example to show me what the correct syntax ought to be. Can anyone help me with this, please?
Many thanks.