Function forceY

  • Creates a new positioning force along the y-axis towards the given position y. If y is not specified, it defaults to 0.

    Type Parameters

    Parameters

    • Optional y: number | ((d, i, data) => number)

    Returns ForceY<NodeDatum>