All,
I need to modify my Scripted Graph Builder so that it sets various scales for each plot.
I have a table of the (simplified) form:
:date - just a date
:rawValue - some numeric value
:byVariable - several categorical values to separate :rawValues into groups
:rawMedian - just a median value for each of the groups, formula Col Quantile(:rawValue, 0.5, :byVariable)
I plot it this way:
Graph Builder(
Size( 800, 500 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables(
X( :date ),
Y( :rawValue ),
Y( :rawMedian ) //It's just a straight horizontal line on each plot
),
By( :byVariable )
)
Now, I would like to set the Y axis scale for each plot separately, and be equal, let's say, 3*:rawMedian for that specific :byVariable.
What's the best way of doing this?
Thanks,
M.