2

I want to get the value of the point where I click on the chart.


    function handleClick(param) {
       document.getElementById('y_value').value = param.point.y;
    }

But this returns the on-screen y-axis coordinates, not the price values.

and this.


    function handleClick(param) {
      document.getElementById('y_value').value = param.point.param.seriesPrices.get(Series).high;
    }

It returns the price value, but only the value above the chart line, not the value of the point I clicked on. How do I get the price-y value even if I click on the blank space on the chart?

what i want

I want to get that red circle value...

Simon
  • 61
  • 5

1 Answers1

4
Series2.coordinateToPrice(param.point.y);

this solved.

Simon
  • 61
  • 5