Hi,
I'm trying to create a generic graph function for various data tables. So the Y axis column's names also vary and I couldn't find a way to plot it based on the title pass it.
title = "no. of people";
gb = graph_func(stackdt,title);
graph_func = function({stackdt,title},{Default Local},
gb = Graph Builder(
Size( 1342, 905 ),
Variables(
Y( :title),
Group X( :Type ),
Group X( :Stat ),
Overlay( :MATRIX_GROUP )
),
Elements( Box Plot( Y, Legend( 25 ) ), Caption Box( Y, Legend( 26 ) ) ),
);
return(gb);
);Stackdt has a column that's named as no. of people and this name will vary if i call a function for a different data table. I know title is not a column, so it doesn't recognize it but how can i plot this. I've also tried passing in the column but I couldn't get it to work either probably because it didn't get copied.