class_docstr: Histogram plot, displaying the distribution of continuous values.
class_docstr_tok: ["Histogram","plot",",","displaying","the","distribution","of","continuous","values","."]
docstr: Args:
      data (Union[pd.DataFrame, pd.Series]): Values to be plotted on the histogram.
      labels (list): Optional labels.
      label_xaxis (str): X-axis label, default to 'Bins'.
      label_yaxis (str): Y-axis label, default to 'Count'.
      xrotation (int): Rotation degree to apply to the x axis, default 0.
      show_legend (bool): Whether to show the legend, default False.
      legend_position (str): Where to position the legend, default 'right'.
      color (Union[str, list]): Color of the plot bars.
      bargap (Union[float, int]): Gap between each bar of the histogram, default 0.1.
      barmode (str): Options include "stack" (default), "relative", "group" and "overlay".
      width (int): The width of the plot.
      height (int): The height of the plot.
docstr_tok: ["Args",":","data","(","Union","[","pd.DataFrame",",","pd.Series","]",")",":","Values","to","be","plotted","on","the","histogram",".","labels","(","list",")",":","Optional","labels",".","label_xaxis","(","str",")",":","X-axis","label",",","default","to","'Bins","'",".","label_yaxis","(","str",")",":","Y-axis","label",",","default","to","'Count","'",".","xrotation","(","int",")",":","Rotation","degree","to","apply","to","the","x","axis",",","default","0.","show_legend","(","bool",")",":","Whether","to","show","the","legend",",","default","False",".","legend_position","(","str",")",":","Where","to","position","the","legend",",","default","'right","'",".","color","(","Union","[","str",",","list","]",")",":","Color","of","the","plot","bars",".","bargap","(","Union","[","float",",","int","]",")",":","Gap","between","each","bar","of","the","histogram",",","default","0.1.","barmode","(","str",")",":","Options","include","``","stack","''","(","default",")",",","``","relative","''",",","``","group","''","and","``","overlay","''",".","width","(","int",")",":","The","width","of","the","plot",".","height","(","int",")",":","The","height","of","the","plot","."]
code: def __init__(
      self,
      data: Union[pd.DataFrame, pd.Series],
      labels: Optional[list] = None,
      label_xaxis: Optional[str] = "Bin",
      label_yaxis: Optional[str] = "Count",
      xrotation: int = 0,
      show_legend: bool = False,
      legend_position: str = "right",
      color: Optional[Union[str, list]] = None,
      bargap: Union[int, float] = 0.1,
      barmode: str = "stack",
      hovertemplate: str = "<b>%{meta.label_xaxis}</b>: %{x}<br>"
      "<b>%{meta.label_yaxis}</b>: %{y:d}"
      "<extra></extra>",
      **kwargs: Any,
  ) -> None:
      """
      Args:
          data (Union[pd.DataFrame, pd.Series]): Values to be plotted on the histogram.
          labels (list): Optional labels.
          label_xaxis (str): X-axis label, default to 'Bins'.
          label_yaxis (str): Y-axis label, default to 'Count'.
          xrotation (int): Rotation degree to apply to the x axis, default 0.
          show_legend (bool): Whether to show the legend, default False.
          legend_position (str): Where to position the legend, default 'right'.
          color (Union[str, list]): Color of the plot bars.
          bargap (Union[float, int]): Gap between each bar of the histogram, default 0.1.
          barmode (str): Options include "stack" (default), "relative", "group" and "overlay".
          width (int): The width of the plot.
          height (int): The height of the plot.
      """
      super().__init__(**kwargs)
      self.data = data
      self.color = color
      self.labels = labels
      self.label_xaxis = label_xaxis
      self.label_yaxis = label_yaxis
      self.xrotation = xrotation
      self.show_legend = show_legend
      self.legend_position = legend_position
      self.barmode = barmode
      self.bargap = bargap
      self.hovertemplate = hovertemplate
  
file_path: tslumen/tslumen/plot/interactive/distribution.py
imports: from typing import Union, Optional, Any
  import pandas
  from tslumen.plot.interactive.base import VizBase, go
label_desc: Use image node_id 1 to create a new Histogram object from inherited base classes: VizBase with example: obj = Histogram(data, labels, label_xaxis, label_yaxis, xrotation, show_legend, legend_position, color, bargap, barmode, hovertemplate)