Categories on the None axis are excluded from the grid and cell keys. When evaluating cells, values across hidden dimensions are aggregated using a per-measure function (default SUM). Adds evaluate_aggregated to Model, none_cats to GridLayout, and 'n' shortcut in TileSelect. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
22 lines
543 B
Rust
22 lines
543 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
|
#[serde(rename_all = "lowercase")]
|
|
pub enum Axis {
|
|
Row,
|
|
Column,
|
|
Page,
|
|
None,
|
|
}
|
|
|
|
impl std::fmt::Display for Axis {
|
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
|
match self {
|
|
Axis::Row => write!(f, "Row ↕"),
|
|
Axis::Column => write!(f, "Col ↔"),
|
|
Axis::Page => write!(f, "Page ☰"),
|
|
Axis::None => write!(f, "None ∅"),
|
|
}
|
|
}
|
|
}
|