code: def _histplot_bokeh_op(
      values, values2, rotated, ax, hist_kwargs, is_circular
  ):
      """Add a histogram for the data to the axes."""
      if values2 is not None:
          raise NotImplementedError("Insert hexbin plot here")
  
      color = hist_kwargs.pop("color", False)
      if color:
          hist_kwargs["fill_color"] = color
          hist_kwargs["line_color"] = color
  
      bins = hist_kwargs.pop("bins", None)
      if bins is None:
          bins = get_bins(values)
      hist, hist_dens, edges = histogram(
          np.asarray(values).flatten(), bins=bins
      )
      if hist_kwargs.pop("density", True):
          hist = hist_dens
      if hist_kwargs.pop("cumulative", False):
          hist = np.cumsum(hist)
          hist /= hist[-1]
      if values.dtype.kind == "i":
          edges = edges.astype(float) - 0.5
  
      if is_circular:
          if is_circular == "degrees":
              edges = np.deg2rad(edges)
              labels = [
                  "0°",
                  "45°",
                  "90°",
                  "135°",
                  "180°",
                  "225°",
                  "270°",
                  "315°",
              ]
          else:
              labels = [
                  r"0",
                  r"π/4",
                  r"π/2",
                  r"3π/4",
                  r"π",
                  r"5π/4",
                  r"3π/2",
                  r"7π/4",
              ]
  
          delta = np.mean(np.diff(edges) / 2)
  
          ax.annular_wedge(
              x=0,
              y=0,
              inner_radius=0,
              outer_radius=hist,
              start_angle=edges[1:] - delta,
              end_angle=edges[:-1] - delta,
              direction="clock",
              **hist_kwargs,
          )
  
          ax = set_bokeh_circular_ticks_labels(ax, hist, labels)
      elif rotated:
          ax.quad(
              top=edges[:-1],
              bottom=edges[1:],
              left=0,
              right=hist,
              **hist_kwargs,
          )
      else:
          ax.quad(
              top=hist,
              bottom=0,
              left=edges[:-1],
              right=edges[1:],
              **hist_kwargs,
          )
  
      return ax
  
file_path: arviz/arviz/plots/backends/bokeh/distplot.py
imports: import matplotlib.pyplot
  import numpy
  from ....stats.density_utils import get_bins, histogram
  from ...kdeplot import plot_kde
  from ...plot_utils import _scale_fig_size, set_bokeh_circular_ticks_labels, vectorized_to_hex, _init_kwargs_dict
  from ..None import show_layout
  from .None import backend_kwarg_defaults, create_axes_grid
label_desc: Use image node_id 2 for calling a global function with example usage: _histplot_bokeh_op(values, values2, rotated, ax, hist_kwargs, is_circular) and returns: ax