Function forceX

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

    Type Parameters

    Parameters

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

    Returns ForceX<NodeDatum>