parameters: (self)
docstring: Handle when the end X is changed.
docstring_summary: Handle when the end X is changed.
docstring_tokens: Handle when the end X is changed .
function: def handle_end_x_updated(self) -> None:
          """Handle when the end X is changed."""
          new_start_x, new_end_x = check_end_x_is_valid(self.model.current_dataset_name, self.view.start_x,
                                                        self.view.end_x, self.model.current_end_x)
          self.update_start_and_end_x_in_view_and_model(new_start_x, new_end_x)
function_tokens: def handle_end_x_updated ( self ) -> None : new_start_x , new_end_x = check_end_x_is_valid ( self . model . current_dataset_name , self . view . start_x , self . view . end_x , self . model . current_end_x ) self . update_start_and_end_x_in_view_and_model ( new_start_x , new_end_x )