docs: def _add_ticks(xaxis: go.layout.XAxis, histogram: HistogramBase, kwargs: dict):
      """Customize ticks for an axis (1D histogram)."""
      ticks = kwargs.pop("ticks", None)
      tick_handler = kwargs.pop("tick_handler", None)
  
      if tick_handler:
          if ticks:
              raise ValueError("Cannot specify both tick and tick_handler")
          ticks, labels = tick_handler(histogram, histogram.min_edge, histogram.max_edge)
  
          xaxis.tickvals = ticks
          xaxis.ticktext = labels
  
      elif ticks == "center":
          xaxis.tickvals = histogram.bin_centers
      elif ticks == "edge":
          xaxis.tickvals = histogram.bin_left_edges
      else:
          xaxis.tickvals = ticks