@pond-ts/charts API Reference
    Preparing search index...

    Function scaleBand

    • Build a ScaleBand over an ordered list of category names. Configure like a d3 scale: scaleBand(tickers).domain([0, n]).range([0, width]) — the container sets domain([0, n]) from the layer's slot extent and range([0, plotWidth]). categories supplies the labels; the domain drives the geometry, so the two must agree on count (categories.length === n), which they do when both come from the same layer's xCategories() / slot extent.

      Parameters

      • categories: readonly string[]

      Returns ScaleBand