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
39
40
use crate;
use crateZeroLine;
// ---------------------------------------------------------------------------
// Zero line rendering
// ---------------------------------------------------------------------------
/// Draws a horizontal reference line across the data area at Y = 0.0.
///
/// The value `0.0` is mapped to a grid row using the same formula used for
/// every other value. Because the input is `0.0`, the formula simplifies to
/// `rows - (-intmin2)`. If the result falls outside the visible grid (i.e.
/// all data is positive or all data is negative), the function returns
/// without drawing anything.
///
/// Only blank cells in the data area are overwritten — cells already
/// containing series characters or other content are left untouched.
/// This function is called before [`render_series`] so that series arc
/// characters always appear on top of the zero line.
pub