37
Views
2
Comments
Solved
[Apex Charts Library] Drill Down on Apex Charts
apex-charts-library
Reactive icon
Forge asset by Team Nexllence
Application Type
Reactive

Hi all,

I am trying to implement a drill-down feature on my half donut chart, where clicking on a label will redirect the user to a data screen and apply a matching filter. For example, if the user clicks on 'Out for Delivery', they should be taken to the data screen and the filter should be set to 'Out for Delivery'.

I have partially achieved this by using the DatapointIndex, but it only works when the data on the chart is not filtered. This is because the corresponding indexes change to different labels when the data is filtered, and I am not sure how to handle this.

I have attached my OML file for reference.

Could someone please provide some guidance or suggest a solution to overcome this issue?

Thank you!

Sandbox.oml
2021-09-06 15-09-53
Dorine Boudry
 
MVP
Solution

Hi @Andrew Smith ,

You can use the DatapointIndex as an index into your list that serves as a source for your chart.  The order in which the statusses are listed in that list corresponds with the order in which they are shown/counted in the chart.

so you can do something like GetOrdersData.Out_Data[DatapointIndex]

see attached your oml changed.

Dorine

SandboxModified.oml
2023-02-06 14-27-11
André Smit

Thanks so much, @Dorine Boudry. Did not even realise that is possible. Appreciate your input.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.