• Percent -> the fraction PriceScaleOptions.marginTop/marginBottom already store. There is no second margin state: the price scale stays the owner, this only converts the dialog's units. Each side is capped at 49% so the pair always leaves a band for the data (the scale itself only guards the sum with a 1% floor, which would squash the plot to a line).

    Parameters

    Returns { marginBottom?: number; marginTop?: number }