@rekurt/openkline - v0.2.0
    Preparing search index...

    Class YieldCurveBehavior

    Non-uniform horizontal-scale behavior: positions each bar proportionally to its domain value (the candle t field) instead of by uniform index. This is what makes a true yield-curve chart possible — tenors at 1M, 3M, 1Y, 5Y, 30Y sit at value-proportional X positions, not evenly spaced.

    uniform = false activates the engine's value-based geometry path (Viewport.setCoordinateMapping); the standard uniform time/price charts are unaffected.

    Implements

    Index

    Constructors

    Properties

    uniform: false

    When true (all built-ins), bars are positioned by uniform buffer index and domainToCoord01 is ignored — the standard, fully-tested geometry.

    Methods

    • Linear-proportional position of value across the visible [from, to]. Deliberately NOT clamped to [0, 1]: off-screen domain values must map outside the chart (coord < 0 or > 1) so indexToX returns truly off-screen coordinates and the renderers' x < chartLeft || x > chartRight culling hides off-screen candles/markers instead of piling them on the edges.

      Parameters

      • value: number
      • from: number
      • to: number

      Returns number