Hello. I am trying to get the labels in this map to be 'stacked' (so that it says the abbreviation on one line and then the number on the next line). Is there a way to do this? Thank you!
I think one fairly easy option which should work is to create new column with ",\!N" as separator between different values.
Names Default To Here(1); dt = Open("$SAMPLE_DATA/Big Class.jmp"); :name << Label(0); new_col = dt << New Column("LABEL", Character, Nominal, Formula( Char(:height) ||",\!N" || Char(:weight) )); new_col << Label(1); gb = dt << Graph Builder( Size(1029, 499), Variables(X(:name), Y(:height)), Elements(Bar(X, Y, Legend(6), Label("Label by Row"))) );
So I tried this and I can't get it to work in the map.
Seems to work here
Names Default To Here(1); dt = Open("$SAMPLE_DATA/CrimeData.jmp"); dt << New Column("LABEL", Character, Nominal, Label(1), Formula( :Region || ",\!N" || :State )); :Region << Label(0); :State << Label(0); :Year << Label(0); dt << Select Where(Row() != Col Min(Row(), :State)) << Hide and Exclude(1); dt << Select Where(Row() == Col Min(Row(), :State)) << Label << Clear Select; gb = dt << Graph Builder( Variables(Color(:Total Rate), Shape(:State)), Elements(Map Shapes()) );
Do you happen to have multiple values for each map shape?
I can't seem to get it.