[docs]defset_value_start(self,value_start:int|float):"""Set start value of Band. This is in values of its owning Axis. Args: value_start (int | float): Value on Axis. Returns: The instance of the class for fluent interface. """self.instance.send(self.id,'setValueStart',{'valueStart':value_start})returnself
[docs]defset_value_end(self,value_end:int|float):"""Set end value of Band. This is in values of its owning Axis. Args: value_end (int | float): Value on Axis. Returns: The instance of the class for fluent interface. """self.instance.send(self.id,'setValueEnd',{'valueEnd':value_end})returnself
[docs]defset_color(self,color:ColorInput|None):"""Set a color of the band. Args: color (Color): Color of the band. Use 'transparent' or None to hide. Returns: The instance of the class for fluent interface. """color=convert_color_to_hex(color)ifcolorisnotNoneelseNoneself.instance.send(self.id,'setSolidFillStyle',{'color':color})returnself
[docs]defset_stroke(self,thickness:int|float,color:ColorInput|None=None):"""Set stroke style of Band. Args: thickness (int | float): Thickness of the stroke. color (Color): Color of the stroke. Use 'transparent' or None to hide. Returns: The instance of the class for fluent interface. """color=convert_color_to_hex(color)ifcolorisnotNoneelseNoneself.instance.send(self.id,'setStrokeStyle',{'thickness':thickness,'color':color},)returnself
[docs]defset_name(self,name:str):"""Sets the name of the Component updating attached LegendBox entries. Args: name (str): Name of the component. Returns: The instance of the class for fluent interface. """self.instance.send(self.id,'setName',{'name':name})returnself
[docs]defset_user_interactions(self,interactions=...):"""Configure user interactions from a set of preset options. Args: interactions (dict or None): - `None`: disable all interactions - `{}` or no argument: restore default interactions - `dict`: configure specific interactions Examples: # Disable all interactions: >>> band.set_user_interactions(None) # Restore default interactions: >>> band.set_user_interactions() >>> band.set_user_interactions({}) # Scale interaction only: >>> band.set_user_interactions({'scale': False}) """returnsuper().set_user_interactions(interactions)