Drill Down, Drill Through: Interactive Hierarchy Navigation Comes to CanvasXpress

Every analyst eventually hits the same wall: a chart shows the big picture, but the real story is one level down. A bar for "West" region hides the states inside it. A pie slice for a product category hides its SKUs. The usual fix is to build five charts and a filter menu, or to flip between dashboards by hand. CanvasXpress now closes that gap natively, with click-to-drill hierarchies on the chart itself and declarative drill-through actions in dashboards — the same navigation idiom you'd expect from Tableau hierarchies or Power BI drill mode, built directly into the charting engine and the dashboard spec.

Click a bar. See what's inside it.

The core idea is a drill hierarchy: an ordered list of sample annotations, coarse to fine — say Region → State → City. Once a chart is configured with that hierarchy, clicking a mark doesn't just select it; it filters the chart down to that value and regroups the data by the next level in the hierarchy. Click "West" and the chart redraws grouped by state, showing only western states. Click "CA" and it redraws grouped by city, showing only California's cities.

var cx = new CanvasXpress("chart1", data, {
  graphType: "Bar",
  drillHierarchy: ["Region", "State", "City"]
});

As you drill, a breadcrumb strip appears above the chart — All › West › CA — with every crumb clickable. Click "West" in the breadcrumb and the chart steps back up to the state-level view, restoring its original grouping and removing just the filter it applied. Click "All" and you're back to the full dataset. The breadcrumb is a lightweight HTML control rendered alongside the chart, not drawn on the canvas, so it never shows up in exported images — it's purely a navigation aid for the person using the chart live.

Because drilling and un-drilling are built on the same state machine as everything else in CanvasXpress, you get the behaviors you'd expect for free: pressing Escape steps back up a level, undo/redo walks the drill path forward and backward, and if you save the chart's current state, drilling all the way back in (via drag-and-drop reload or the Reproduce action) restores exactly where you left off — breadcrumb included.

One mechanism, five chart families

Drill hierarchies aren't bolted onto a single chart type. The same drillHierarchy config works across the geometries where "drill" actually makes sense:

If you've already configured annotations and grouping on your data, turning on drill navigation is a configuration change, not a redesign. And because it's opt-in — a chart with no drillHierarchy behaves exactly as it always has — there's no risk to existing dashboards or saved charts.

Drill-through across panels, not just within one chart

Drilling inside a single chart solves half the problem. The other half is drill-through: clicking something in one panel of a dashboard should be able to filter or refocus another panel. CanvasXpress Dashboards already supported a simple click-to-parameter hook; it's now generalized into a small set of declarative, per-panel click actions that sit alongside your existing panel configuration:

"actions": [
  { "on": "click", "setParam":  { "name": "region", "field": "Region" } },
  { "on": "click", "setFilter": { "dataRef": "sales", "field": "Region" } },
  { "on": "click", "focusPanel": "detail" }
]

All three can be combined on a single click, which is what makes true drill-through dashboards possible without needing separate pages: click a region in an overview chart, and in one action a detail panel scrolls into view, filters to that region, and re-renders with the right parameter.

Dates drill naturally too

Time-series data gets its own shortcut: a date-based drill hierarchy (Year → Quarter → Month → Day) is generated automatically from a date field, so clicking a yearly bar takes you to its quarters, then its months, then its days — no manual bucketing required.

Try it

Drill hierarchies and drill-through actions are available now in both the charting engine and CanvasXpress Dashboards. If you've been building separate "overview" and "detail" charts and wiring your own click handlers to connect them, this is the shortcut: declare the hierarchy, declare the actions, and let the breadcrumb and undo stack handle the navigation. Check the gallery examples for a region-to-city bar drill, a treemap drill, and a full dashboard drill-through to see the pattern end to end.