Skip to main content

highcharter 12.6.0: Back after 226 days

What’s new in highcharter: chart grids, linked widgets, and more things you can plot straight from R.
R
highcharter
data-visualization
Author

Joshua Kunst

Published

December 4, 2026

It’s been 226 days (felt like 226 years!) since the last CRAN release of highcharter (0.9.5, April 22, 2026), and we’re back to working on the package. I started the package because I wanted to make interactive Highcharts plots from R. I still want that. What I want a little more often these days is to put several charts on a page and explore them together.

highcharter 12.6.0 bundles Highcharts JS 12.6.2, and we’re working through the CRAN submission process. It isn’t available there yet. Here are the changes I most wanted to write about:

Throughout December, we’ll be adding examples of each of these features here on the blog, so you can see them in action and try them with your own data.

Panels inside a single chart

I ran into this in an old post about the New York Times weather chart: I wanted temperature and precipitation one above the other, so I set up the axes and their heights by hand. That was in 2016. Ten years later, I wanted that layout to take less work.

hc_gridAxis() lays out pairs of axes in a grid inside one chart. A panel can hold several series and have its own scale. I can keep two series together when their units match and give a third its own panel when they don’t. The grid takes care of where things go.

Separate charts that move together

Sometimes I want two charts to stay separate. One might show the level of a series and the other its change from the previous month. When I zoom in on one, I almost always want the same dates in the other.

hc_connect() lets widgets share tooltips and crosshairs, horizontal zoom, or series visibility in the legend. It works across separate Quarto chunks in the same HTML page, without Shiny. This is the one I’m most looking forward to using on the blog.

A few more things you can pass to hchart()

hchart() now draws fitted decision trees, out-of-bag error curves for random forests, and cross-validation curves with intervals for cv.glmnet objects, among others. With a tree I want to see where it splits. With a forest I want to see whether the error settles down as I add trees. In both cases I’d rather start with the fitted object than build a data frame just to take that first look.

Languages and accessibility

hc_set_language("es") sets Spanish as the default for new charts in the current R session. There are also presets for English, Portuguese, French, Norwegian Bokmål, Japanese, Korean, and Simplified Chinese. Regional tags select the date and number formats used by the browser, and hc_language() returns the options if you want to inspect or adapt them.

Charts, Stock, Maps, and Gantt now share one JavaScript bundle, with the accessibility module included by default. That brings features such as keyboard navigation into the regular widget. We still need to give each chart useful descriptions, clear labels, and meaningful units; including the module is a starting point for that work.

A little help behind the scenes

I also used AI coding assistance to put together the JavaScript bundle and automate parts of the documentation workflow. That helped with the work of keeping the bundled modules and documentation up to date, alongside the changes to the R interface.

… And some breaking changes 😅

Some old calls will need updating. Deprecated shortcuts such as hcspark() and hciconarray() have been removed: use a sparkline theme or an item series instead. hc_labels() gives way to hc_annotations(), and hcaes_() to hcaes_string().

Themes now go through one constructor. For example, replace hc_theme_ft() with hc_theme("ft"), use hc_themes() to browse the presets, and hc_set_theme("ft") to choose a default for subsequent charts. You can still build a custom theme with hc_theme().

The package now requires R 4.1 or later. There are other changes to axis helpers, sample datasets, and Shiny event names, so if you’re updating an existing project, start with the release notes and migration guide. The CRAN submission is still in progress; I’ll update the links when the new version is available there.