ChartYOnDropped

Description

The ChartYOnDropped method returns the Y coordinate where the mouse was last clicked on the chart.

Syntax

public ChartYOnDropped(): number

Return Value

Returns a number representing the Y coordinate of the last mouse click.

Example

try {
  const yCoord = this.api.ChartYOnDropped();
  console.log(`Mouse clicked at Y coordinate: ${yCoord}`);
} catch (error) {
  console.error("Failed to get Y coordinate:", error.message);
}

Last updated