From Lab Bench to Front Page: CanvasXpress Gets Editorial Polish
CanvasXpress has always been built for depth — scientific chart types, in-chart analytics, and reproducible specs you can hand to a colleague or a reviewer. What it hasn't always had is the finish that a newsroom or a comms team expects the moment a chart leaves the notebook and goes on a public page: clean locale-aware numbers, a proper source/byline footer, callouts that point at the thing you actually want someone to notice, and a one-click way to publish and embed.
That gap is now closed. Here's what you can do today.
Numbers that read the way your audience expects
Axis labels, tooltips, legends and data labels can now be formatted with full locale awareness instead of falling back to generic decimal notation. Turn it on with a single config option:
var cx = new CanvasXpress("chartId", data, {
graphType: "Line",
numberFormat: {
locale: "en-US",
style: "currency",
currency: "USD",
decimals: 1,
grouping: true
}
});
Want percentages in one locale and compact "12.4K"-style numbers in another? Swap the style or locale value — the formatting engine builds on the browser's native internationalization support, with sensible fallbacks, so grouping separators, currency symbols and compact notation all come out correct for the audience you're publishing to. Axis widths are measured against the actual formatted text, so labels don't get clipped. And because this is entirely opt-in, every chart you've already built renders exactly as it did before — nothing changes unless you ask it to.
A footer that tells the whole story
Publication charts need more than a title: they need a source, a note on methodology, who made it, and ideally a way for readers to get the underlying data. CanvasXpress now supports a structured footer alongside the existing citation line:
var cx = new CanvasXpress("chartId", data, {
graphType: "Bar",
notes: "Figures are seasonally adjusted.",
source: "National Statistics Office",
sourceUrl: "https://example.org/data",
byline: "Data team",
showDataDownload: true
});
The footer is drawn right onto the canvas, so when you export to PNG or SVG the attribution travels with the image — no more charts floating around the internet with no indication of where the numbers came from. The "Get the data" link lets a reader download the chart's current view as CSV on the spot.
Callouts and direct labels, not just a legend
Good editorial charts don't make a reader cross-reference a legend to understand what a spike means. CanvasXpress's annotation decorations now support connector lines from a label straight to the data point it describes, and you can drag a label into position while the Customizer is open — the adjustment is written back into the chart's own configuration, so the result stays fully reproducible from the spec itself.
For line charts specifically, you can also skip the legend entirely and label each series directly at its endpoint, which is often the cleanest way to present a multi-line trend chart to a general audience.
An editorial theme, and layouts that adapt to the screen
A new editorial theme gives you light horizontal gridlines, a left-aligned title and subtitle, a restrained palette, and the structured footer turned on by default — the visual grammar readers expect from a published chart rather than a lab plot.
Pair it with responsive rules, and your chart can genuinely adapt rather than just shrink:
var cx = new CanvasXpress("chartId", data, {
graphType: "Line",
theme: "editorial",
responsiveRules: [
{ maxWidth: 480, config: { legendPosition: "bottom", title: "" } }
]
});
At narrow widths — a phone screen embedded in an article, for instance — the chart can move its legend, thin out tick labels, or shorten its title automatically. Your original configuration, retrievable at any time with cx.getConfig(), is never mutated; the responsive behavior is applied on top of it at render time.
Chart types editors actually ask for
Dumbbell and range plots, arrow plots showing before-and-after movement, and parliament-style donut charts for election and composition results are available as native graph types, alongside the existing lollipop, bullet and waterfall bar styles. You get the chart types that dominate data journalism without reaching for a different tool.
Maps and tables, dressed for publication
Choropleth maps now support cleaner classification — including Jenks natural-breaks binning — with a proper stepped legend, and symbol maps can show a size legend so readers can calibrate bubble sizes at a glance. Data tables support in-cell bars, heat-colored cells, and sparklines per column, turning a plain data grid into something publishable on its own.
Publish, embed, and go
A chart built in the CanvasXpress dashboards environment can be published with a stable URL and copy-paste embed code — either a responsive <iframe> that resizes itself to fit its content, or a web-component <script> embed. Republishing updates the same URL in place, so links you've already shared keep working. If you're starting from raw data rather than a spec, the dashboards Builder also offers a guided path — upload your data, review a preview that flags questionable values, get suggested chart types, and publish — so a reporter without JavaScript experience can go from a CSV to a live, embeddable chart in a few steps.
Also new
You can now supply your own alt-text with an explicit description option instead of relying solely on the automatically generated summary — handy when you know your audience better than any algorithm does. And charts can be exported directly to vector PDF, with the chart's underlying JSON specification embedded in the file so it can be reopened and reproduced later, not just viewed.
Try it
None of this requires learning a new tool. It's the same CanvasXpress you already use for exploratory and scientific work — just with the editorial controls switched on when you need them, and switched off (silently, byte-for-byte) when you don't.