Update dependency apexcharts to v6 - #334
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
renovate
Bot
force-pushed
the
renovate/apexcharts-6.x
branch
from
July 21, 2026 19:55
5c312b6 to
5124c22
Compare
renovate
Bot
force-pushed
the
renovate/apexcharts-6.x
branch
from
July 22, 2026 15:04
5124c22 to
ebd6c78
Compare
renovate
Bot
force-pushed
the
renovate/apexcharts-6.x
branch
from
July 22, 2026 22:35
ebd6c78 to
aec8317
Compare
renovate
Bot
force-pushed
the
renovate/apexcharts-6.x
branch
from
July 23, 2026 16:29
aec8317 to
41ed8ef
Compare
renovate
Bot
force-pushed
the
renovate/apexcharts-6.x
branch
from
July 24, 2026 12:45
41ed8ef to
75d9b0d
Compare
renovate
Bot
force-pushed
the
renovate/apexcharts-6.x
branch
from
July 30, 2026 20:03
75d9b0d to
db6cb74
Compare
renovate
Bot
force-pushed
the
renovate/apexcharts-6.x
branch
from
August 5, 2026 12:08
db6cb74 to
81f6a48
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.41.0→6.7.0Release Notes
apexcharts/apexcharts.js (apexcharts)
v6.7.0: 💎 Version 6.7.0Compare Source
The headline is a new chart type,
sunburst: a hierarchical radial chart (a nested pie and donut) that draws tree-structured data as concentric rings, one ring per level of the hierarchy, with each child arc nested inside its parent's angular span. This release also brings rounded corners and inter-slice spacing to pie and donut slices, a parliament (hemicycle) layout for theunitchart, an optional hover tooltip on point annotations, and a broad reliability and security pass. Two behavior changes are worth reading before you upgrade: a legend click on pie, donut, and polarArea now toggles the slice in and out, and the premium features now require an entitled plan rather than just any valid key. Every existing config renders unchanged.✨ New
The
sunburstchart typechart.type: 'sunburst'renders a hierarchy as a ring of nested arcs: the first level fills a donut around the centre hole, and each deeper level stacks outward, with every child arc constrained to the angle of its parent. It is a non-axis chart (dispatched like pie or treemap) and is tree-shakeable viaimport 'apexcharts/sunburst', so it adds nothing to the core bundle unless you use it. It is a free chart type, not gated.Data is the familiar
x/yshape with achildrenarray for nesting:plotOptions.sunburst.innerSizesets the centre hole (percentage or pixels),borderRadiusrounds the arc corners, andspacingopens a gap between neighbouring arcs. Colours,stroke,legend, andtitlebehave as they do on pie and donut.Rounded corners and spacing for pie and donut
plotOptions.pie.borderRadiusrounds the corners of each slice, andplotOptions.pie.spacingopens a gap between slices, so a pie or donut can read as a set of separated, soft-cornered segments rather than a solid wheel. Both apply to polarArea as well.A parliament layout for the
unitchartThe
unitchart (introduced in 6.6.0) gains aplotOptions.unit.arclayout: a parliament or hemicycle that arranges the marks as seats in concentric arced rows across an annulus, filled in category order. It is the natural shape for seat counts and any part-to-whole where a semicircle reads better than a grid. The gather animation is now tunable too, with configurable easing and enter motion.Optional tooltips on point annotations
Point annotations can now show a hover tooltip, so an annotated marker can carry its own explanatory text without a separate custom element.
🐛 Fixes
datano longer breaks the rest of the chart. A series object without adataproperty used to abort parsing of every series after it, leaving the parsed data out of step with the series names. It is now treated as an empty series, and the remaining series parse and stay aligned.updateSeriesandupdateOptionsno longer hang on a failed render. Their promises now reject when the render throws, instead of never settling, soawait chart.updateSeries(...)can be caught rather than leaking a pending promise.yAxisIndexand a sunburst drilldown cycle are fixed.destroy(). Animation, resize, and pending timeout callbacks are guarded against firing on a destroyed chart, and the detached SVG root is released on teardown, closing a class of update-then-destroy errors and leaks.updateOptions, annotation tooltips that could suppress the series tooltip chart-wide, an empty-candlestick crash, a redundant redraw on a resize that did not change the drawing box, and a per-render reset of thehasNullValuesandinvalidLogScaleflags.TypeScript
plotOptions.sunburst,plotOptions.pie.borderRadius/spacing, and theunitarclayout options are fully typed, andchart.typeaccepts'sunburst'.Compatibility
unitchart type plusstoryboard,link,ink,measure,contextMenu,perspectives, andhistory) clear the watermark only on apremiumorenterpriseplan. A validprokey, or the free tier, keeps them in trial mode with the watermark and logs a one-time upgrade notice; it is not treated as an invalid key. Existingpro-plan customers using these features will now see the watermark. Everything else, every free chart type and module, is never gated.v6.6.1Compare Source
v6.6.0: 💎 Version 6.6.0Compare Source
The headline is a new premium chart type,
unit: one mark per unit of value, drawn as dot clusters, pictograms, waffles, or beeswarms, with a keyed tween that re-forms the marks whenever the data, grouping, or filter changes. It ships with six layouts, per-mark data, and awafflealias, and it is the first premium chart type (it renders in trial mode with a watermark until a key is set). This release also adds signature verification to the license manager and fixes a zoom-out edge case. Existing configs render unchanged.✨ New
The
unitchart type (premium)chart.type: 'unit'renders a discrete mark for every unit of value instead of a single bar or slice, so "37 of 200" reads as a countable quantity. It is a non-axis chart (dispatched like pie or treemap) and is tree-shakeable viaimport 'apexcharts/unit'. On every update each mark tweens from its old position to its new one, so re-grouping, filtering, or a changing count re-forms the marks rather than redrawing from scratch.Six layouts via
plotOptions.unit.layout:grouped(default): one phyllotaxis blob per category, laid out in a row.packed: one shared blob, coloured by group and sorted so the minority nests in the centre.columns: each category is a vertical bar built from stacked dots (a waffle column).grid: one waffle lattice, a part-to-whole square "pie" (grid.totalrounds it to a fixed cell budget, e.g. 100 for a percentage waffle).gridwithsplit: true: small multiples, one mini-waffle per category over a faint track, in a trellis.scatter: marks on real value axes, as a 1D beeswarm (laned by category, deterministic anti-overlap packing), a 2D value-value plot (scatter.y: 'value'), or area-scaled bubbles (scatter.sizeRange). The layout draws its own axes with a homegrown nice-number scale.Also included:
circle,square, andimage(isotype pictogram, withimage.tintto recolour a monochrome icon to its category colour).series: [{ name, data: [{ value, x, z, name, fillColor, id }, ...] }]gives each mark its own colour, position, size, and tooltip content.transition):group(default, per-category),flow(the anonymous crowd migrates and recolours across a regroup, the circles-to-bars effect), andidentity(a specific mark persists across any regroup or relayout, keyed byid/name).autodot size, opt-insizeByValuebubbles,unitValuewaffle scaling (1 mark = N units), and amaxUnitssafety cap.clusterLabels(a curved arc over a blob or a straight label above / below a bar,position: 'top' | 'bottom'), per-mark tooltips, legend click to hide and show a category with an animated re-flow, and the standardfill.opacityso overlapping bubbles read through each other.Nine interactive demos ship under
samples/*/unitandsamples/*/waffle: a workforce dot cluster, a population age-slider, a pictogram population, a team roster, a life-expectancy beeswarm, a cost-of-living bubble scatter, a scrollytelling marathon storyboard, a startup-funding walkthrough, an electricity-mix waffle, and an urbanisation small-multiple waffle.The
wafflechart typechart.type: 'waffle'is a thin alias ofunit: it presets thegridlayout with square cells, so a part-to-whole waffle is one line of config. Withgrid.total: 100the values are largest-remainder rounded to exactly 100 cells, so the grid always reads as percentages. The original type is preserved onchart.requestedType, and an explicitlayoutorshapestill wins.🐛 Fixes
TypeScript
plotOptions.unitis fully typed across all layouts and their option groups (grid,scatter,clusterLabels,sizeByValue,image,columns,tooltip), andchart.typeaccepts'unit'and'waffle', withchart.requestedTypecarrying the original alias.Compatibility
unit(and itswafflealias) is the first premium chart type: it renders fully in trial mode with anAPEXCHARTSwatermark until a key is set. Every other chart type stays free and is never watermarked.v6.5.0: 💎 Version 6.5.0Compare Source
A release built around interaction polish and one new capability. Mouse-wheel zoom is now smooth and cursor-anchored, the brush/selection now lines up exactly with the bars underneath it, and a run of interaction fixes clears up crossfilter, heatmap updates, and group tooltips. It also introduces optional license enforcement for the premium features: they keep working without a key (trial mode), just with a watermark. No chart types are gated, and existing configs render unchanged.
✨ New
Licensing for the premium features (trial mode)
Seven premium modules now run under a lightweight, offline license check:
storyboard,link(crossfilter / linked views),ink,measure,contextMenu,perspectives, andhistory. Without a valid key they still work fully in trial mode, but the chart shows an unobtrusiveAPEXCHARTSwatermark; a valid key removes it. Everything else, every chart type and every free module, is never gated and stays silent.A few things worth knowing:
setLicense(validKey)followed by an update clears an on-screen watermark; no full re-render needed.⚡ Improvements
Continuous, cursor-anchored mouse-wheel zoom
Wheel and trackpad zoom used to run a fixed step at most once every 400ms and drop everything in between, which read as lag. It is now coalesced per animation frame and anchored to the cursor: the data point under the pointer stays put while the window scales around it, so a trackpad's stream of small deltas feels continuous. The
zoomedevent fires once per gesture, not once per wheel tick.🐛 Fixes
chart.selection.xaxis), so the reported range always equals the rectangle you see. Range-binned crossfilter histograms now span their outer bin edges too, so every bin, including both edges, is fully brushable, and achart.link.bins: { width }option is no longer silently dropped.updateSeries.seriesprop right after mount no longer blanks a filter-mode chart; the engine re-asserts its aggregated series.offsetX.TypeScript
chart.licenseis typed on the chart options.Compatibility
v6.4.0: 💎 Version 6.4.0Compare Source
A feature release centered on heatmaps and a new bar chart race. Heatmaps gain a continuous numeric and datetime x-axis (cells positioned by real value, not by column index), optional canvas rendering for large grids, and a tooltip that now points at the cell it describes. The bar chart race animates bars and their labels as they re-rank. Two fixes round it out. Existing configs mostly render unchanged; three heatmap defaults change (tooltip placement, zoom, and label thinning), each noted below with how to restore the previous behavior.
✨ Features
Continuous numeric and datetime x-axis for heatmaps
On a numeric or datetime heatmap, cells are now placed at their real x value instead of being tiled one per column by index. Irregular spacing and gaps therefore render as real empty space: a missing hour is a gap in the grid, not a column squeezed away, and the axis shows sparse proportional date and time ticks rather than one label per cell. Rows stay categorical (one series per row).
Canvas cell rendering for large heatmaps
With
chart.renderer: 'canvas'(or'auto'past the render threshold) and the tree-shakable canvas feature imported, heatmap cells now paint to a single canvas instead of one<rect>per cell.Bar chart race
A reorder update now animates into a bar chart race. When you re-sort the data and update the chart, the bars slide to their new ranks and their category labels ride along automatically (whenever
dynamicAnimationis on). Two opt-in flags complete the effect:dataLabels.animaterides each value label to its bar's new position, anddataLabels.countUptweens the number from its previous value.Both label flags are off by default and apply to bar and column charts. Rotated axis labels ride correctly too.
🔧 Behavior changes (heatmap defaults)
The heatmap tooltip is anchored above the cell
The heatmap tooltip now sits centered above the hovered cell with a downward arrow pointing at it, flipping below when the cell is against the top edge.
🐛 Fixes
dataReducerno longer mutates your data. With zoom-aware downsampling active, the reduced (windowed) view was written back into the originalseriesarray, which is shared by reference, so later re-renders started already downsampled and could never recover the full-resolution points. The reducer now operates on a detached copy, leaving your input intact.tooltip.customfunction replaced the tooltip's inner HTML, which discarded the arrow element. The arrow is now preserved across custom content, for every chart type.TypeScript
dataLabels.animateanddataLabels.countUp(bar chart race) are typed onApexDataLabels.Compatibility
v6.3.0: 💎 Version 6.3.0Compare Source
A performance release focused on updates.
updateSeriesis now genuinely incremental: a data-only update repaints the series and refreshes the axis chrome in place instead of tearing the chart down and rebuilding it, so streaming and frequently-updating charts are several times faster. Large-series initial render is also markedly quicker from shared parsing work. There are no API changes and no new options: the rendered output is verified identical to 6.2.0, so existing configs render exactly as before, just faster.The numbers below are 5-trial medians (initial render) and per-cycle medians (updates) from the reproducible harness behind the "100,000 Points" rendering benchmark, measured back to back on one machine (headless Chromium, animations off, identical seeded data).
⚡ Performance
updateSeriesis now incrementalPreviously every
updateSeriescall re-ran the full render pipeline: parse, re-layout, and a complete DOM rebuild. It now takes a fast path that repaints only the series layer and, when the axis scale changes, redraws the grid and axes in place within the frozen layout. The canvas renderer repaints its existing bitmap instead of recreating the backing store. Anything the fast path cannot reproduce exactly (a change in series count or data length, collapsed or combo series, an active zoom) falls back to the full render automatically.updateSeriescycleLine and area initial render: roughly 2 to 3 times faster at high point counts
The parse pipeline no longer forces a deep clone of the series and several whole-series aggregate passes that most charts never read, and plain numeric
[[x, y], ...]data now parses in a single typed pass that also computes the axis extrema inline (removing separate min/max scans). The path geometry itself was already fast; this release removes the surrounding per-render overhead.Scatter charts inherit the parsing wins
Scatter and bubble charts share the parse pipeline, so they pick up a portion of the same improvement without any scatter-specific work.
🐞 Fixes
🔧 Behavior changes (structural, not visual)
updateSeries. Data-only updates now keep and update the existing series, axis, and grid elements rather than replacing them. Rendered output (SVG path data and canvas pixels) is verified identical; code that re-queries chart elements after an update by class or attribute continues to work, but code that cached a specific element node reference from before an update and relied on it being replaced should re-query instead.Compatibility
v6.2.0: 💎 Version 6.2.0Compare Source
A performance release. Large-series rendering is 30 to 45% faster in both renderers, and scatter charts create half the DOM nodes they used to. There are no API changes and no new options: the rendered output is verified byte-identical to 6.1.0, so existing configs render exactly as before, just faster.
The numbers below are 5-trial medians from the reproducible harness behind the "100,000 Points" rendering benchmark post (headless Chromium, animations off, identical seeded data).
⚡ Performance
Scatter and bubble charts: half the nodes, up to 45% faster
Markers now render into ONE
apexcharts-series-markersgroup per series instead of one wrapper group per point. On a 50,000-point scatter that removes 50,000 groups, 50,000 event-delegation setups, and 50,000 clip-path writes from every render.Per-point interactivity is unchanged: tooltips,
dataPointMouseEnter/dataPointMouseLeave/dataPointSelection, marker hover states, and selection filters all read their identity from the marker paths themselves and keep working exactly as before. Discrete markers, per-pointfillColor, bubble z-scaling, and null-value markers are unaffected.Line and area charts: 36 to 43% faster at high point counts
Plain straight line and area series now take a numeric fast path: pixel coordinates are computed in one tight loop and the path string is assembled in a single join, skipping the per-point machinery that dominated large renders. Anything the fast path cannot reproduce exactly (null gaps, visible markers, data labels, stacking, combo charts, smooth and stepped curves) automatically falls back to the previous code path. The
dattribute output is byte-identical either way.updateSeriescycle, 10,000 pointsThe
updateSeriesimprovement applies to both renderers, so streaming and frequently-updating charts benefit as well.Canvas renderer: batched marker painting
The canvas renderer (
apexcharts/features/renderer-canvas) now paints markers as style batches: one fill/stroke state application per run of same-style markers, so a uniform single-series scatter collapses to a single batch. Non-circle marker shapes (square, triangle, diamond, star, cross, plus) reuse one cached geometry per shape and size, translated per marker, instead of building a path string and parsing it for every point. Line and area series painted on canvas consume the fast path's numeric coordinates directly, with no path-string parse at all.🔧 Behavior changes (structural, not visual)
.apexcharts-series-markerswrapper groups in scatter or bubble charts (for example, selecting the nth group to reach the nth point), there is now a single such group per series. The.apexcharts-markerpaths inside it, including theirrel,j,index,cx,cy, anddefault-marker-sizeattributes, are unchanged, so selectors that address markers directly keep working.Compatibility
dattributes) and canvas pixels are byte- and pixel-identical to 6.1.0 across the snapshot suite; only the wrapper-group structure noted above differs.v6.1.0: 💎 Version 6.1.0Compare Source
A focused follow-up to 6.0. The Measure ruler graduates into a first-class toolbar tool you can pre-select, toolbar tools can now be toggled off, and two interaction bugs are fixed. Everything is backward compatible: existing configs render unchanged.
✨ Features
Measure ruler in the toolbar
The measure / delta ruler (shipped in 6.0) is now a built-in toolbar tool, so it can be armed with a click instead of holding the measure key. The button appears automatically whenever the ruler is enabled, and can be pre-selected so the plot loads ready to measure.
chart.measure.enabledis true.tools.measureacceptstrue/falseor a custom SVG string, like the other tools.toolbar.autoSelectednow also accepts'measure', so the plot loads armed and ready to drag with no key held and no click. Themkey still works.🔧 Behavior changes (on by default)
Toolbar tools toggle off on re-click
Clicking an already-selected zoom, pan, selection, or measure icon now deselects it, leaving the chart with no active tool. Previously those buttons were one-way (clicking the active tool did nothing). This makes the ruler's on / off state obvious and lets you drop back to a plain, gesture-free chart.
TypeScript
toolbar.tools.measure, the'measure'value fortoolbar.autoSelected, and thetoolbar.measurelocale string are all typed.v6.0.0: 💎 Version 6.0.0Compare Source
The largest release in the library's history. Version 6 turns a chart from a picture you look at into a surface you investigate, author, and share. Most of what follows is opt-in and tree-shakeable; existing configs keep working unchanged, and the zero-dependency, SVG-first identity is intact.
Two behaviors change by default (both respect
prefers-reduced-motionand the existingdynamicAnimation.enabledescape hatch): data updates that add or remove points now animate coherently, and mobile pinch/pan gestures are on. See Fixes for the details.✨ Features
Weave: public plugin platform
Publish reusable chart plugins to npm against a stable, versioned API. A plugin draws into its own sandboxed layer and subscribes to lifecycle hooks; it never touches raw internal state.
api.layeris a plugin-owned drawing surface (path/line/rect/circle/text);api.scalesconverts data to pixels;api.data,api.theme, andapi.storeround out the facade.apiVersiongates the contract so raw internals can keep changing safely.ApexCharts.unregisterPlugin(name)exists for tests and hot reload.Strata: hybrid SVG + canvas renderer
Break the SVG node ceiling without leaving SVG behind. Below a threshold the output is identical SVG; above it, only the series layer becomes a
<canvas>while axes, grid, tooltips, annotations, and exports stay SVG.Marks: composable custom series types
Register a
renderItem(datum, scales, api)function and get a first-class series: events, shared tooltip, legend, and keyboard navigation all work with no extra wiring.Dumbbell, lollipop, and bullet ship as samples. Built-in type names are guarded against shadowing.
Rewind: history and undo/redo
Generic Ctrl-Z over a command journal. Zooms, series toggles, option changes, and annotation edits are recorded; high-frequency gestures coalesce into a single step.
Perspectives: shareable view state
Serialize the exact view (zoom window, hidden series, selection, annotations, theme) into a compact token you can put in a URL and restore anywhere.
Facet: design tokens and OS-aware themes
Charts read
--apx-*CSS custom properties from the cascade, follow the operating system's light/dark and contrast preferences with no JS, and can reference named brand themes.chart.refreshTokens()re-reads the cascade after a runtime token change that does not itself trigger a render.Cadence: pluggable easing
chart.animations.easingaccepts a named curve, a cubic-bezier array, or a function. The default is unchanged, so existing charts animate exactly as before.A data-change override is available via
chart.animations.dynamicAnimation.easing.Linked Views: crossfilter and cross-chart coordination
Coordinate a group of charts without wiring. In highlight mode, brushing one chart dims the non-matching marks in the others (no redraw). A real crossfilter engine adds categorical click-filters, range brushes, a shared data-table, and a heatmap 2D matrix target.
Ink Layer: direct-manipulation annotation authoring
Annotations become draggable and resizable, with click-to-create, snap to gridlines, and a floating editor card (inline rename, recolor, bold, font size, marker size and shape, delete). Every edit is undoable when Rewind is enabled.
Measure ruler
Hold a key and drag to read the change, percent, range, and slope between two points; on release the ruler pins as a data-anchored overlay that re-projects on zoom and resize.
mode: 'span'is the finance-style vertical band with a change/percent/range readout;mode: 'free'is a diagonal ruler between two arbitrary points. Styling resolves through--apx-measure-*tokens.Context menu (Radial Actions)
Right-click or long-press a data point for verbs that act at that exact point rather than chart-wide.
Built-in
annotate/xline/ylineitems are ink-managed when the ink feature is bundled (they open the floating editor and undo via Rewind).Storyboard: scroll-driven choreography (scrollytelling)
Pair prose sections with saved views. Scrolling a beat past the viewport trigger applies its view; scrolling back reverses it. Each beat can also merge an
updateOptionspayload so it can restyle or morphchart.typeinside one animated transition.Real-time streaming: constant-velocity scroll
Rolling-window updates now scroll at constant velocity instead of warping in place, and
chart.streamingbounds memory for long-running feeds.The scroll animation itself needs no opt-in: any update that continues the previous window (
appendData, or a shifted fixed-lengthupdateSeries) translates smoothly.🔧 Behavior changes (on by default)
Coherent variable-length data transitions
Updates that change the number of data points now animate as one coordinated motion instead of popping. Appended bars grow from the baseline, removed bars shrink into ghosts and fade out, line and area fills reshape over the union of old and new points (so they can never tear), and markers, bubbles, and axis tick labels ride along on the same clock. This also gives scatter and bubble charts dynamic-update animations for the first time, and bubbles tween their radius on
zchanges. Zoom re-projections animate their marks and ticks too.Disable per chart with
chart.animations.dynamicAnimation.enabled: false. Skipped automatically abovechart.animations.largeDatasetThresholdand whenprefers-reduced-motionis set.Native-feeling mobile gestures (Momentum)
Two-finger pinch-zoom around the centroid, two-finger pan, and kinetic inertia after a one-finger flick, with axis rails so a vertical swipe still scrolls the page. Configurable via
chart.zoom.pinchandchart.pan.inertia.🐛 Fixes
render()is idempotent: a repeatedrender()call (including a framework double-invoking an effect) returns the same promise instead of building a duplicate chart in the same element.destroy()clears it so an instance can render fresh; a rejected render clears itself so callers can retry.hideSeries/showSeries/toggleSeriesno longer silently no-op under strict CSS selector engines (the series lookup no longer relies on an escaped-colon attribute selector).pathFrom(doublez) that fed the animation engine an invalid command list on area updates.📦 Tree-shaking
Every feature above ships as a tree-shakeable entry (
apexcharts/features/*) registered through the feature registry; the core stays lean. See the tree-shaking guide for the complete list of entry points.TypeScript
Full type definitions ship with the package (no
@types/*install). 6.0 adds types for every new config namespace and API, plus the SSR statics (renderToString,renderToHTML,hydrate,hydrateAll,isHydrated).v5.16.0: 💎 Version 5.16.0Compare Source
✨ Features
Drilldown navigation (opt-in)
Click a data point to drill into a child level, with a breadcrumb trail and back navigation. Supported on bar, column, pie, donut, treemap, and heatmap. Tree-shakeable: import the feature and enable it.
chart.drilldown.series, or fetched on demand viaonDrillDown.position,separator,rootLabel,formatter) and includes a back-arrow.animation.zoomFromPointunfolds the child level outward from the clicked point (and folds back on drill-up).Pie / donut external (outer) data labels with leader lines (opt-in)
Render each slice's name outside the pie, connected by a leader line, so users no longer need to map legend colors back to slices. Pie and donut only (ignored for polarArea). The percentage keeps rendering inside the slice.
Scatter jitter: strip plots and overplotting (opt-in)
Spread overlapping scatter points apart. Two uses, one engine. Offsets are in axis units, deterministic (SSR-safe), and applied to the drawn positions only, so tooltips still show the true values.
{ x: 'Category', y: [v1, v2, ...] }data. Each category becomes a band and its values scatter horizontally within it. Every value is a real, hoverable marker; the sticky tooltip follows the hovered dot.{ x, y }data, add small random offsets so dense clusters fan out.Marker styling reuses the standard
markers/colors/fillconfig; setjitter.distributed: trueto color each band separately.Data reducer for range charts
chart.dataReducernow downsamplesrangeAreaandrangeBarseries via min-max bucket aggregation (preserving the visual extremes of each bucket), complementing the existing LTTB reduction for line/area.🐛 Fixes
v5.15.2: 💎 Version 5.15.2Compare Source
Fixes
Draw-animation frame no longer touches a destroyed chart
An animated chart (e.g. an
areachart) schedules arequestAnimationFrameduringrender()to run its mask-reveal / draw animation. If the chart was destroyed before that frame fired, the stale callback ran against already-cleared DOM and threw:The classic trigger is React StrictMode, which mounts → unmounts → remounts a component in development: the first mount queues the animation frame, the unmount calls
destroy()(which nullsw.dom.elDefs), and the queued frame then fires against the torn-down chart. Any sufficiently rapid unmount hit the same race.The fix adds an internal
isDestroyedflag, set bydestroy()(but not by updates), that the deferred draw-animation callbacks - mask reveal, stroke draw, and bulk reveal - check and bail on before touching the DOM. The flag is cleared on the next render, so re-mounting re-arms animations normally.This complements the detached-chart
destroy()fix in 5.15.1; together they resolve the teardown crashes tracked in react-apexcharts#602.v5.15.1: 💎 Version 5.15.1Compare Source
A small patch release with a single stability fix: charts that are torn down before they ever mount no longer throw.
Fixes
destroy()no longer throws on an un-mounted / detached chartCalling
destroy()(or an internalclear()) on a chart that never finished rendering threw:This happened when a chart was constructed against an element that wasn't connected to the DOM - so
create()bailed out early before building the SVG, leavingw.dom.Paperundefined - and the chart was then destroyed. Common triggers:useEffectcleanup (or a Vueunmountedhook) tearing the chart down before the element was ever attached.update()firing after the host element had already been removed.The teardown path now guards on the SVG actually having been created, cancels any pending resize redraw, and tolerates a missing
Apex._chartInstancesregistry, so destroying a never-mounted chart is a safe no-op.Fixes react-apexcharts#602 and vue-apexcharts#256.
v5.15.0: 💎 Version 5.15.0Compare Source
New Features
Violin chart type
A new, tree-shakeable
chart.type: 'violin'that renders a kernel-density curve for each category, with an optional overlay of the individual observations ("jitter") that produced it.import ApexCharts from 'apexcharts/violin', or via the full bundle.Box-plot jitter overlay
Box plots can now overlay the raw observations behind each box, via
plotOptions.boxPlot.points. It's off by default and inert unless a data point supplies apoints: number[]array, so existing box-plot charts are unchanged.v5.14.0: 💎 Version 5.14.0Compare Source
✨ New Features
Heatmap gradient legend
An opt-in continuous gradient legend for heatmaps that replaces the categorical legend with a color strip and a hover-tracking arrow.
legend.position(top / right / bottom / left) and a newalignconfig (start/center/end).'70%').colorScale.rangesor sampled from the same shade function the cells use, rendered as a smooth midpoint-anchored gradient (green → blue → yellow → red) that matches the shaded cells.Value-proportional pyramid geometry
chart.type: 'pyramid'now matches the geometry users expect: a single continuous triangle whose stages each own a vertical share proportional to their value, with no gaps between segments.gridWidth) sized by cumulative-value share.Chart-type morph animations
A new, optional, tree-shakeable feature that tweens between chart types instead of the old destroy-and-recreate flicker.
Loaded on demand via
apexcharts/features/morph. It captures the old SVG paths from the DOM before destroy, maps each one onto the new chart-type's element identity, and seeds the new paths so the existing PathMorphing engine interpolates between them. When the source/target types or series shapes are incompatible it falls back to an instant snap.🐛 Fixes
M 0 0(invalid-path edge case).toolbar.menuto theApexLocaletype.v5.13.0: 💎 Version 5.13.0Compare Source
This release focuses on a major visual and behavioral overhaul of tooltips, gauges, and the toolbar, alongside a new zoom-aware LTTB downsampler for very large datasets, a new multi-axis zero-alignment option, and a tightening of the public TypeScript surface.
Features
feat(tooltip): modernized positioning, arrows, and a11y
Tooltip box and arrow now anchor off the bar's rendered DOM rect fixing column/datetime alignment in stacked and grouped charts. Adds a connector arrow (default on) and context-aware placement
tooltip.arrow: boolean(defaulttrue) — render a connector arrow pointing at the data point.feat(gauge): needle options and
Configuration
📅 Schedule: (in timezone Asia/Jerusalem)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.