Stack Labels

816
6
02-08-2022 05:41 AM
RhysLlewellyn
New Contributor

Hi

I'm using ArcGIS Pro 2.9.1 and trying to create a polygon label that stacks 3 fields on 3 lines.

Using the VBscript and Python languages (& vbCrLf& or + '\n' +), neither of the stacking codes produces more than a 2-line label.

The Stack parameters under the Fitting Strategy option are set to a max of 3 lines, minimum of 1 character and maximum of 24 characters.

Can anyone advise on a fix or workaround for this please?

Thanks

Rhys

0 Kudos
6 Replies
Sean_Wray
Occasional Contributor

try & vbnewline & to make your stack. Do not check stacking in the label properties.

Sean_Wray_0-1644328499109.png

 

0 Kudos
RhysLlewellyn
New Contributor

Thanks Sean, but that seems to make no difference at the moment.

0 Kudos
Sean_Wray
Occasional Contributor

can you post a copy of the entire expression you are trying to use?

0 Kudos
RhysLlewellyn
New Contributor

As follows:

[Sub_Comp] & vbnewline & [Species] & vbnewline & [Area]

 

also tried the more modern & vbCrLf& code too. Output shown below: initial character ('c' or 'b') should be on a separate line.

RhysLlewellyn_0-1644330978497.png

 

0 Kudos
Sean_Wray
Occasional Contributor

I am at a loss. What happens if you change the order of the stacking fields? This is just a guess.

0 Kudos
JesseWickizer
Esri Contributor

I can't reproduce this with version 2.9.1. Are you able to share a map package with sample data to review all the settings you're using?

JesseWickizer_0-1649976240961.png

 

0 Kudos