1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/// Represents a secondary Y-axis encoding specification (Y2).
///
/// `Y2` is typically used for visual marks that require two vertical coordinates,
/// such as the baseline of an Area chart, the second endpoint of a Rule,
/// or the "start" value of a Bar.
///
/// ### Architecture Note:
/// Unlike `X` or `Y`, `Y2` does not usually define its own scale logic (domain, type, etc.).
/// Instead, it maps a different data field onto the **same** scale as `Y`.
/// For instance, in an Area chart, `Y` might map to "high_price" and `Y2` to "low_price",
/// but both must use the same vertical coordinate system to be visually coherent.
/// Convenience builder function to create a new Y2 encoding.
///