Your Charts Now Work With Your Thumbs: Touch Comes to CanvasXpress

For years, CanvasXpress charts carried a quiet assumption: there was a mouse. Hovering a point revealed its tooltip, scrolling the wheel zoomed, dragging panned or rotated. On a phone or tablet, none of that existed. A tap might register as a click, but pinch-to-zoom, one-finger panning, and tap-to-inspect simply were not there. The chart rendered beautifully on a small screen and then sat inert.

That gap is now closed. CanvasXpress ships a dedicated touch layer that gives the common interactive graph types real, native gestures — and it is on by default, so most charts become touch-friendly without changing a single line of config.

What you can do now

On any touch-capable device — a phone, a tablet, a Surface laptop, a Chromebook, an iPad — the gestures you already expect just work:

Because the touch layer owns the gestures end to end, there is no double-firing or fighting with the browser's own double-tap-to-zoom. The chart canvas tells the browser to hand it the gestures, while the rest of the page keeps scrolling normally.

If you ever want to opt out — say you are embedding a static chart inside a scrollable article and want the page to own all touches — a single flag turns it off:

new CanvasXpress({
  renderTo: 'chart',
  data: myData,
  config: {
    graphType: 'Scatter2D',
    touchGestures: false   // default is true
  }
});

One flag for narrow screens

Touch is only half of a good mobile experience. The other half is layout. A legend that sits comfortably to the right of a 900-pixel chart has nowhere to go in a 390-pixel column.

CanvasXpress already had a responsive-rules system that lets authors rewrite config based on the rendered canvas width. Writing those rules by hand for every chart, though, is tedious. So there is now a one-line preset that applies sensible narrow-canvas adjustments for you:

new CanvasXpress({
  renderTo: 'chart',
  data: myData,
  config: {
    graphType: 'Bar',
    responsiveNarrow: true   // condense legend, fonts, etc. on narrow canvases
  }
});

Turn on responsiveNarrow and, when the canvas is narrow, the legend moves to the bottom, fonts scale down, and other space-saving overrides kick in — then revert the moment the canvas is wide again. A deliberate detail: the preset keys on canvas width, not device type. A 480-pixel panel inside a three-column desktop dashboard gets the same condensing, which is exactly what a cramped canvas needs regardless of what it is running on. It is opt-in and default-off, so no existing chart changes until you ask for it. Your own responsive rules still win on any key you both set.

Dashboards that fit in a hand

The gestures and the preset carry into the CanvasXpress dashboards product, too. Dashboard chrome — the filters bar, the toolbar, legend toggles — now meets comfortable touch-target sizes on small screens, controls collapse or scroll instead of overflowing off the edge, and panels pan their charts without hijacking the page scroll. Stack a multi-panel dashboard on a phone and every panel still renders a usable chart.

And the website itself

The public CanvasXpress site got the same attention. Every page was walked at phone width and fixed where it broke: the right-rail navigation no longer overlaps the content, tap targets are comfortably sized, wide tables and code blocks scroll instead of forcing the whole page sideways, and the live chart embeds and gallery thumbnails scale to the column they sit in. The documentation, the gallery, and the dashboards overview all read cleanly on a 390-pixel screen.

What stayed exactly the same

The most important promise behind this work is the one you cannot see: desktop rendering is byte-for-byte unchanged. Touch gestures add interaction; they never alter what a chart draws. The narrow-canvas preset is off unless you turn it on. Every static chart produces precisely the output it did before. So you can upgrade and know that nothing in your existing desktop deployments shifted — the new capabilities simply light up when a finger touches the glass.

Why it matters

Data visualization increasingly happens away from the desk. A clinician glancing at a Kaplan–Meier curve between patients, an analyst checking a dashboard on the train, a reviewer opening a figure from a link on their phone — all of them now get a chart they can actually explore, not just look at. Tap to read a value, pinch to zoom into a dense region, drag to pan across a genome, and let the layout condense itself for the screen in your hand.

It is the same engine, the same configs, the same reproducible output. It just finally meets you where your hands are.