Hi @ian3,
Great question - Apex Charts doesn’t have a built-in “drill-down” mode, but you can try the following suggestion to achieve it with the chart’s click event + a data-source switch in workflows:
- Keep two data sources ready:
- Monthly series (e.g., your current line chart).
- Daily series constrained by a month (Date ≥ MonthStart and < MonthStart + 1 month).
- On the chart element, use the event “A Line chart data point is clicked”. The plugin exposes the clicked data point index and the selected label/value in states for that event.
- Create two custom states on the page (or group):
-
view_mode
(text: “month” / “day”)
-
selected_month
(date)
- Maintain a parallel list of month start dates for the monthly chart (e.g., from your Things’ dates → :formatted as “start of month” → :unique elements → :sorted).
On click, set selected_month = MonthList :item # (ClickedPointIndex + 1)
. This avoids parsing the label as a date.
- After you set
selected_month
, set view_mode = "day"
and update the chart’s data source to the “daily” search with constraints:
- Date ≥
selected_month
- Date <
selected_month +(months): 1
Then trigger the plugin’s Update series/Redraw action (if you use that action in your setup).
- Optionally show a “Back to months” button that resets
view_mode = "month"
and rebinds the monthly series.
Notes:
- Rely on the point index → parallel month list mapping; it’s more robust than parsing the label (since labels are text).
- If you prefer to encode dates in the x-axis, you can still format labels for display while keeping an internal date list for the workflow logic.
If you’d like, share screenshots of your data source + workflow with the click event and constraints, and we’ll double-check your setup.
Docs for reference are here: https://docs.zeroqode.com/plugins/apex-chart-54-charts-and-graphs
Best regards,
Support Team
Browse all Zeroqode Plugins for bubble
