Services Plugins FAQs

Apex Charts - Drill Down Functionality?

Hey, I’d like my users to be able to click a data point (month) and the chart switches to showing the data for each individual day of that month.

I don’t see a way to do this… I’m working with line charts.

I can see that the selected label is available in workflows, but it’s passed through as text, not as a date.

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:

  1. 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).
  1. 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.
  2. Create two custom states on the page (or group):
  • view_mode (text: “month” / “day”)
  • selected_month (date)
  1. 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.
  2. 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).
  1. 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
Banner_Last3