highcharts-android icon indicating copy to clipboard operation
highcharts-android copied to clipboard

How to get the series index

Open BabakR-alefba opened this issue 11 months ago • 1 comments

How to get the index of the point that user clicked on in below code?

spline.setPoint(new HIPoint());
spline.getPoint().setEvents(new HIEvents());
spline.getPoint().getEvents().setClick(new HIFunction(
        f -> {
            Toast t = Toast.makeText(
                this,
                "Clicked point [ " + f.getProperty("x") + ", " + f.getProperty("y") + " ]",
                Toast.LENGTH_SHORT);
                t.show();
            },
            new String[] {"x", "y"}
));

BabakR-alefba avatar Jan 21 '25 08:01 BabakR-alefba