axes: &HashMap<usize, &Axis>,
styles: &HashMap<&str, &Style>,
a: Axis3,
- rotate_inner_column_labels: &mut bool,
- rotate_outer_row_labels: &mut bool,
+
footnotes: &pivot::Footnotes,
dims: &mut Vec<Dim<'a>>,
) {
(false, None, None, None)
};
- if let Some(axis) = axes.get(&base_level)
- && axis.major_ticks.label_angle == -90.0
- {
- if a == Axis3::X {
- *rotate_inner_column_labels = true;
- } else {
- *rotate_outer_row_labels = true;
- }
- }
-
let hide_all_labels = if let Some(axis) = axes.get(&base_level)
&& let Some(style) = axis.major_ticks.style.get(styles)
&& style.visible == Some(false)
axes: &HashMap<usize, &Axis>,
styles: &HashMap<&str, &Style>,
a: Axis3,
- rotate_inner_column_labels: &mut bool,
- rotate_outer_row_labels: &mut bool,
footnotes: &pivot::Footnotes,
level_ofs: usize,
dims: &mut Vec<Dim<'b>>,
dim_vars.push((var, level));
} else if !dim_vars.is_empty() {
categorical_vars.push(dim_vars[0].0);
- decode_dimension(
- &dim_vars,
- axes,
- styles,
- a,
- rotate_inner_column_labels,
- rotate_outer_row_labels,
- footnotes,
- dims,
- );
+ decode_dimension(&dim_vars, axes, styles, a, footnotes, dims);
dim_vars.clear();
}
}
if !dim_vars.is_empty() {
categorical_vars.push(&dim_vars[0].0);
- decode_dimension(
- &dim_vars,
- axes,
- styles,
- a,
- rotate_inner_column_labels,
- rotate_outer_row_labels,
- footnotes,
- dims,
- );
+ decode_dimension(&dim_vars, axes, styles, a, footnotes, dims);
}
categorical_vars
}
coordinate: &'a Series,
}
- let mut rotate_inner_column_labels = false;
- let mut rotate_outer_row_labels = false;
let cross = &graph.faceting.cross();
let columns = cross
.first()
&axes,
&styles,
Axis3::X,
- &mut rotate_inner_column_labels,
- &mut rotate_outer_row_labels,
&footnotes,
1,
&mut dims,
&axes,
&styles,
Axis3::Y,
- &mut rotate_inner_column_labels,
- &mut rotate_outer_row_labels,
&footnotes,
1 + columns.len(),
&mut dims,
&axes,
&styles,
Axis3::Z,
- &mut rotate_inner_column_labels,
- &mut rotate_outer_row_labels,
&footnotes,
columns.len() + rows.len() + 1,
&mut dims,
#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
struct MajorTicks {
- #[serde(rename = "@labelAngle")]
- label_angle: f64,
-
#[serde(rename = "@style")]
style: Ref<Style>,
}