stream-charts
    Preparing search index...
    • Calculates the x-coordinate of the upper left-hand side of the tooltip rectangle (obviously without "rounded corners"). Adjusts the x-coordinate so that tooltip is visible on the edges of the plot.

      Parameters

      • x: number

        The current x-coordinate of the mouse

      • textWidth: number

        The width of the tooltip text

      • plotDimensions: Dimensions

        The dimensions of the plot

      • tooltipStyle: TooltipStyle

        The tooltip style information

      • margin: Margin

        The plot margin

      Returns number

      The x-coordinate of the lower left-hand side of the tooltip rectangle