Set the gradient coloring mode - `GradientMode::Value` (default): Color based on data value at each position. More information-dense as color encodes actual values. - `GradientMode::Position`: Color based on vertical row position (btop-style). Top rows get "hot" colors, bottom rows get "cool" colors. More intuitive as "higher = hotter" physically matches the graph.
(mut self, mode: GradientMode)
| 124 | /// Top rows get "hot" colors, bottom rows get "cool" colors. |
| 125 | /// More intuitive as "higher = hotter" physically matches the graph. |
| 126 | pub fn gradient_mode(mut self, mode: GradientMode) -> Self { |
| 127 | self.gradient_mode = mode; |
| 128 | self |
| 129 | } |
| 130 | |
| 131 | /// Invert the Y-axis fill direction (fill from top down instead of bottom up) |
| 132 | /// |
no outgoing calls