stream-charts
    Preparing search index...

    Function mouseInPlotAreaFor

    • Calculates whether the mouse is in the plot-area

      Parameters

      • x: number

        The x-coordinate of the mouse's position

      • y: number

        The y-coordinate of the mouse's position

      • margin: Margin

        The plot margins

      • dimensions: Dimensions

        The the overall dimensions (plot dimensions plus margin)

      Returns boolean

      true if the mouse is in the plot area; false if the mouse is not in the plot area