You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that this library is a wrapper around javascript, this makes me wonder. Is there some exposed variables like current dataset, current viewable data set or current marker that I can get back to my Android(kotlin) code?
I can not see any mention of JavascriptInterface or listeners in the api documentation.
The text was updated successfully, but these errors were encountered:
after some more reading i see that HIFunction is probably the correct way to do this. But is there a list somewhere that lists all available .getProperty("names")?
Yes, you can use events in combination with HIFunction for this purpose. Here is a general explanation of how to use HIFunction in the Highcharts Android wrapper.
For example, you can utilize the drilldown event as follows:
val event =HIEvents()
event.drilldown =HIFunction(HIConsumer { f:HIChartContext->val category = f.getProperty("category")
val seriesOptions = f.getProperty("seriesOptions")
val pointX = f.getProperty("point.x")
val pointY = f.getProperty("point.y")
val pointDrilldown = f.getProperty("point.drilldown")
val drilldown = f.getProperty("drilldown")
}, arrayOf("category", "seriesOptions", "point.x", "point.y", "point.drilldown", "drilldown"))
chart.events = event
The parameters you pass in the array to HIFunction will be accessible later in your code.
To understand what parameters are available for specific events, you can refer to the event documentation. For example, the drilldown event is documented here: Chart events.
From this documentation, you can see the event arguments for Highcharts.DrilldownCallbackFunction. By navigating deeper into the documentation, you’ll find the detailed list of properties available on the event object: Highcharts.DrilldownEventObject.
Hello great library.
I see that this library is a wrapper around javascript, this makes me wonder. Is there some exposed variables like current dataset, current viewable data set or current marker that I can get back to my Android(kotlin) code?
I can not see any mention of JavascriptInterface or listeners in the api documentation.
The text was updated successfully, but these errors were encountered: