From Single Charts to Full Dashboards: Introducing CanvasXpress Dashboards

If you've ever built a CanvasXpress visualization, you already know the library can do a lot more than draw a single chart. Selection, filtering, hiding, and zooming can automatically propagate between independent chart instances — that cross-chart coordination has been part of CanvasXpress's broadcast mechanism all along. What's been missing is a convenient way to compose several of those coordinated charts into one coherent, reusable surface: a dashboard you can lay out, save, share, and eventually build without writing code.

That gap is now closed with CanvasXpress Dashboards, a companion package that lets you describe a dashboard declaratively, render it as a responsive grid of linked CanvasXpress charts, bind panels to live data sources, and persist or share the result — all while reusing the exact coordination engine CanvasXpress already ships.

A dashboard is just a spec

At the center of the new package is a single JSON document — the dashboard spec. It describes the panels, how they're laid out on a grid, and what data each one binds to. Because the spec is declarative, it's easy to generate, version, diff, and store.

{
  "id": "sales-overview",
  "title": "Sales Overview",
  "layout": {
    "cols": 12,
    "rowHeight": 120,
    "items": [
      { "panel": "revenue-bar", "x": 0, "y": 0, "w": 6, "h": 3 },
      { "panel": "region-pie",  "x": 6, "y": 0, "w": 6, "h": 3 },
      { "panel": "trend-line",  "x": 0, "y": 3, "w": 12, "h": 3 }
    ]
  },
  "data": {
    "sales": { "kind": "connector", "url": "/api/data?source=sales" }
  },
  "panels": {
    "revenue-bar": { "title": "Revenue", "dataRef": "sales", "config": { "graphType": "Bar" } },
    "region-pie":  { "title": "By Region", "dataRef": "sales", "config": { "graphType": "Pie" } },
    "trend-line":  { "title": "Trend", "dataRef": "sales", "config": { "graphType": "Line" } }
  },
  "controls": [
    { "kind": "filter", "dataRef": "sales" },
    { "kind": "table",  "dataRef": "sales" }
  ]
}

A few design choices make this format pleasant to work with:

var cx = new CanvasXpress(target, data, config, events);

Drop a spec with inline data into the renderer and you get a fully laid-out, fully coordinated dashboard with zero backend required — select a region in the pie chart and the bar and line charts (and the data table) update in step, because that propagation logic is the same broadcast behavior CanvasXpress has always had.

Binding to real data, securely

Static, inline data is a great way to prototype, but dashboards get interesting when they're wired to live sources. A panel's data source can instead point at an authenticated connector endpoint — the same approach used by the CanvasXpress connectors ecosystem for secure, server-mediated access to databases and spreadsheets. No credentials ever reach the browser; the dashboard simply asks for a named data source, and the server resolves it on the viewer's behalf.

Because sources are named and shared across panels, several charts pulling from the same query issue a single request instead of duplicating the fetch. Sources can also be configured to refresh on an interval, so a dashboard stays current without the viewer needing to reload the page — panels update in place as fresh data arrives, with loading and error states handled per panel so one slow or failing source never blanks out the whole dashboard.

Saving, loading, and sharing

A dashboard spec is just data, so it behaves the way CanvasXpress charts already do: it can be exported, reloaded, and shared. You can save a dashboard's current state, reload a previously saved dashboard, and generate a link that lets someone else view it — read-only, and resolved with their own data permissions rather than the author's, which keeps sensitive sources properly access-controlled even when a dashboard is shared broadly.

This mirrors the familiar CanvasXpress workflow of using the toolbar or File menu to save a chart as JSON and reload it later by dragging the file back onto the canvas. Dashboards extend that same mental model to a whole collection of linked charts at once: save the dashboard, hand the file (or a share link) to a colleague, and they get back the identical layout, panels, and coordination you built.

Building dashboards without writing JSON by hand

For teams who want to assemble dashboards visually, a no-code builder sits on top of the same spec. You can add panels, drag them into position, resize them on the grid, and pick a data source for each one — all from a toolbar, with a live preview updating as you work. Because the builder only ever edits the underlying spec, nothing it produces is special or hidden: what you build in the UI is a dashboard spec you could just as easily hand-author, version in source control, or generate programmatically.

Chart-level customization — graph type, colors, grouping, axes — happens through CanvasXpress's own familiar customization interface on each panel, so there's no second, parallel options UI to learn. Pick a panel, open its customizer, adjust it like you would any CanvasXpress chart, and the result folds back into the dashboard's saved configuration.

Why this matters

The hard part of a coordinated, multi-chart dashboard — propagating selections, filters, and zoom across independently rendered visualizations — was already solved in CanvasXpress. CanvasXpress Dashboards focuses on the part that was missing: a clean, declarative way to lay charts out, bind them to real data, and persist the result as something shareable. If you're already using CanvasXpress for individual charts, moving to dashboards means reusing your existing configuration and data knowledge, not learning a new system.