Or anywhere for that matter.
I'm writing a function that generates some specialist graphs for work. Im doing some extra drawing on the canvas and need the graph to re-adjust on the y-axis to fit everything in. I can achieve this by getting the max and min of every point I am plotting and setting those (+/- 5%) as my upper and lower limits. However, in order for the changes to take effect I need to call the axis label. I've tried index numbers. I've tried storing the name as a variable and calling the variable. None of my attempts seem to work and the documentation is not comprehensive on this topic.
Example:
Within the graph builder and send to report I have:
| | Dispatch({}, |
| | | "The Axis Name", |
| | | ScaleBox, |
| | | {Format( "Fixed Dec", 15, 0 ), Min( llim ), Max( ulim ), |
| | | Inc( 1 ), Minor Ticks( 1 )} |
| | ), |
To get this to work in a function, I currently have to hard code the name. I would like for it to update dynamically no matter what graph I am plotting.
Something to the effect of
| | Dispatch({}, | |
| | | Y-Axis, |
| | | ScaleBox, |
| | | {Format( "Fixed Dec", 15, 0 ), Min( llim ), Max( ulim ), |
| | | Inc( 1 ), Minor Ticks( 1 )} |
| | ), | |
Is what I am looking for.