(axis: &Option<Axis>)
| 192 | } |
| 193 | |
| 194 | pub(super) fn is_date_axis(axis: &Option<Axis>) -> bool { |
| 195 | axis.as_ref() |
| 196 | .and_then(|a| a.axis_type.as_ref()) |
| 197 | .is_some_and(|t| matches!(t, AxisType::Date)) |
| 198 | } |
| 199 | |
| 200 | /// Collect unique x-string labels from scatter/line traces for category/date axes. |
| 201 | pub(super) fn collect_string_x_labels(traces: &[TraceIR]) -> Vec<String> { |