code: def render(
      table: alt.Data, *, height: int, width: int, height_minimap: int
  ):
      brush = alt.selection_interval(encodings=["x"])
  
      base = alt.Chart(table).mark_bar().encode(y="count():Q")
      detail = base.encode(
          alt.X(
              "value:Q",
              bin=alt.Bin(maxbins=30, extent=brush),
              scale=alt.Scale(domain=brush),
          )
      ).properties(width=width, height=height)
      minimap = (
          base.encode(
              alt.X("value:Q", bin=alt.Bin(maxbins=30)),
          )
          .add_selection(brush)
          .properties(width=width, height=height_minimap)
      )
  
      return detail & minimap
  
imports: from typing import Optional
  import altair
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: render(table) and returns: unknown