Set the positions of an existing series.
(&mut self, id: &ShapeId, positions: &[[f64; 2]])
| 877 | } |
| 878 | |
| 879 | /// Return whether the in-canvas controls/help UI is enabled. |
| 880 | pub fn controls_help_enabled(&self) -> bool { |
| 881 | self.show_controls_help |
| 882 | } |
| 883 | |
| 884 | /// Set a custom formatter for the x-axis tick labels. |
| 885 | /// The formatter receives a GridMark (containing the tick value and step size) |
| 886 | /// and the current visible range on the x-axis. |
| 887 | pub fn set_x_axis_formatter(&mut self, formatter: TickFormatter) { |
| 888 | self.x_axis_formatter = Some(formatter); |
| 889 | } |
| 890 | |
| 891 | /// Set a custom formatter for the y-axis tick labels. |
| 892 | /// The formatter receives a GridMark (containing the tick value and step size) |