Hi @sjurzyk79
The yOffset calculation for the “text” mark (with description “Actual Label”) is currently referencing the “datum[‘act_label_offset’]” field which is calculated in the transform block for a different mark in the layer block (the “area” mark with description “Masking layer (with interpolated points)”).
To use a calculated field, the mark must be able to “see” it, so it would need to be calculated in the specific mark block or included in a shared encoding block outside the layer block.
I’ve added a transform block to the “text” mark (with description “Actual Label”) and recalculated the positive, baseline, and offset values (using a “temp” prefix) and adjusted the mark property expressions accordingly; the labels are now visible and positioned above for positives and below for negatives.
(I also adjusted the colour of the actuals line to be lighter (using the style\actual_line in the config) to increase the legibility of the labels.)
Hope it helps.
Greg
eDNA Forum - Deneb yOffset.pbix (3.5 MB)