v3.4.0-next.1预发布2026-10-28
> [!NOTE]
> For Android, the minimum SDK version has been raised from 23 to 24, in line with AndroidX.
Overview
- breaking changes: none[^1]
- addressed: #660, #736, #1053, #1601, #1614
- external contributors: @adrcotfas, @davols, @jonasborggren, @mkx173, @shayann07
Changes
- Added grouped stacked columns. ColumnCartesianLayer.StackKeyProvider assigns a ColumnCartesianLayer’s series to stacks: Series whose getStackKey results are equal (as determined by equals) share a stack, and the stacks are grouped side by side. Each stack is as wide as its widest column, and in each stack, positive and negative values accumulate separately. StackKeyProvider.Grouped and StackKeyProvider.Stacked reproduce the previous behavior of giving every series a column of its own and of stacking all series into one column.
- Added stackKeyProvider and stackSpacing parameters to ColumnCartesianLayer and rememberColumnCartesianLayer, and renamed columnCollectionSpacing to groupSpacing, which now spaces groups rather than single columns. mergeMode and ColumnCartesianLayer.MergeMode, including MergeMode.Grouped and MergeMode.Stacked, are deprecated in favor of stackKeyProvider and stackSpacing. Deprecated constructors, copy overloads, and rememberColumnCartesianLayer overloads cover the old parameters.
- Added drag-to-rotate for pie charts. rememberPieRotationState creates a PieRotationState, which houses a pie chart’s rotation and exposes the current angle, and both PieChartHost overloads gain a rotationState parameter. Rotation is off by default and is turned on via rotationEnabled. Tangential drags rotate the pie and fling on release; radial drags are left to the parent scroll.
- Removed PieChart.startAngle and the startAngle parameters of rememberPieChart and PieChart.copy, as the angle now lives solely in PieRotationState. Pass rememberPieRotationState(initialRotation = …) to PieChartHost instead. Host-less rendering, including renderToImageBitmap, continues to use −90°.
- Fixed number formatting, which is now consistent across platforms. The digits are computed arithmetically rather than parsed from the platform-specific output of Double.toString: Whole numbers no longer lose their trailing zeros on Kotlin/JS (100 was shown as “1”), values from 10⁷ on no longer pick up the JVM’s scientific notation (1e10 was shown as “1.0E1”), and binary representation errors no longer truncate values such as 0.29 to “0.28.” Thousands separators are no longer inserted after the minus sign (“−,200”), and negative values that round to zero are no longer shown as “−0.” Values are now rounded half away from zero rather than truncated, so 1.239 is shown as “1.24” rather than “1.23.” This affects CartesianValueFormatter.decimal, CartesianValueFormatter.yPercent, DefaultCartesianMarker.ValueFormatter.default, PieValueFormatter.Value, and the default labels of HorizontalLine and HorizontalBox.
- Fixed CartesianValueFormatter.yPercent, which divided values by maxY without multiplying the quotients by 100, so half of maxY was shown as “0.5%” rather than “50%.”
- Fixed the sideways jump at the end of a pinch. VicoZoomState now applies a zoom factor and its anchoring scroll compensation atomically, so neither can be separated from the other or cancelled in between, and the compensation is no longer dropped while a scroll is in progress. Relatedly, the maximum scroll value is no longer computed for the wrong zoom factor within a frame, zoom anchoring is now correct in RTL layouts, initialZoom is no longer permanently suppressed by a pinch clamped at minZoom, zoom(Zoom) and animateZoom now share an anchor, and a replaced VicoScrollState is now picked up even when the chart has no area.
- Fixed the residual hop at the end of a pinch, where the lifting of the first finger could seed scrollable’s touch-slop detection with that finger’s entire travel and start a drag. Pinch gestures now consume every pointer change.
- Prevented a ConcurrentModificationException from CartesianChartModelProducer.update when a chart was disposed during an update. The update receivers are now held in an immutable map behind an atomic reference, so registration and unregistration can’t drop a concurrent update’s changes, or vice versa.
- Fixed the hole in single-slice donut charts, which was filled in when a slice spanned the full circle, as the slice path’s fill type was lost when the path was copied for drawing.
[^1]: Excluding pie charts, which are experimental. (They’ll remain available, but breaking changes are more likely.)
v3.3.12026-08-29
Overview
- breaking changes: none
- addressed: #1587
Changes
- Fixed an IllegalStateException (“Underflow in restore—more restores than saves”) that could crash charts with a LineCartesianLayer on Android 10. LineCartesianLayer guards its reveal-sweep clip with a sweepFraction < 1f check, and an ART JIT bug (b/553511933) could make the two evaluations of that comparison disagree, leaving an unmatched Canvas.restore. The comparison is now evaluated once and reused.
v3.3.02026-08-17
> [!WARNING]
> Android is now Compose-first. Moving forward, like the official view-based Jetpack libraries, Vico’s views module will receive only critical fixes. Its versioning is being decoupled, and the following applies only to compose. The views guide, API reference, and sample charts remain available.
>
> If your project will stay view-based for the foreseeable future and you need the latest Vico features, you can use the compose module with ComposeView.
Overview
- breaking changes: none
- addressed: #351, #394, #594, #1003, #1313, #1369, #1475, #1478, #1485
- external contributors: @adrcotfas, @hjf-codecrazy, @lewan42, @nagatsuka-shuuya, @rubixhacker
Changes
- Added content-area chart sizing. CartesianChartHost and PieChartHost gain a chartAreaHeight parameter, which sets the default height of the coordinate system (for Cartesian charts) or the default pie diameter (for pie charts). The legend, the marker, the axis margins, and other components now add to this height rather than being fitted inside a capped total height. The defaults are 192 dp for Cartesian charts and 232 dp for pie charts. Modifier.height and similar still constrain the component bounds.
- Deprecated MeasuringContext.canvasSize in favor of MeasuringContext.canvasWidth. With chartAreaHeight, the canvas height isn’t necessarily known during measuring. When drawing, read the full size from DrawingContext.canvasSize, narrowing your receiver from MeasuringContext to DrawingContext where needed. See the deprecation messages for more.
- Deprecated BaseAxis.Size.Fraction. Its main use case—keeping the chart area’s height constant as the x-axis height changes—is now served by chartAreaHeight. Relatedly, HorizontalAxis’s automatic-height cap is now a fixed 64 dp instead of a fraction of the canvas height.
- Introduced per-type CartesianLayerDrawingModelInterpolator factories: line, column, and candlestick. The old default factory and the CartesianLayerDrawingModel.transform and Entry.transform hooks are deprecated; layer-specific interpolators now own interpolation policy. If you customized interpolation, consult the deprecation messages.
- Added a reveal animation for LineCartesianLayer. Passing CartesianLayerDrawingModelInterpolator.line(sweep = true) for drawingModelInterpolator animates a line’s first appearance as a clip sweeping in from the start.
- Added separate initial-animation settings. CartesianChartHost gains an initialAnimationSpec parameter, which defaults to animationSpec and can be set to null to skip the initial reveal animation. The animateIn parameter is deprecated; set initialAnimationSpec to null instead.
- Added configurable axis title positions. HorizontalAxis and VerticalAxis gain a titlePosition property, and BaseAxis.TitlePosition defines the available values (Side and End). Their factory and copy functions also gain a titlePosition parameter.
- Added the option to anchor extreme HorizontalAxis labels to the plot-area edges without shrinking the plot area, preventing clipping. HorizontalAxis.ItemPlacer.aligned gains a shiftExtremeLabels parameter, and HorizontalAxis.ItemPlacer gains getShiftExtremeLabels.
- Added snap scrolling. rememberVicoScrollState and VicoScrollState gain xSnapStep and snapAnimationSpec; when xSnapStep is set, the scroll position snaps to multiples of the given x-step after a fling.
- Added VicoZoomState.animateZoom for animating zoom programmatically.
- Added visible-x-range preservation across data updates. When a chart’s x-range shifts (its minX or xStep changes), VicoScrollState recomputes the scroll value so the same x-coordinates stay on screen, keeping prepended history from jumping the viewport to the start edge. The correction runs during measurement, so the adjusted value is used by the frame that draws the new data, and it works in both LTR and RTL layouts.
- Fixed a VicoScrollState scroll-position bug in which a zoom’s stale scroll compensation was applied when a pinch transitioned straight into a pan or fling, rolling the viewport back to its zoom-time position.
- Prevented an UpdateReceiver leak when a chart’s identity changes. Registration, transformation, and unregistration with CartesianChartModelProducer now use the effect-stable chart ID rather than a value that mutates on recomposition.
- Fixed PieChart slice spacing, which now yields a constant-width gap for both donuts and holeless pies instead of widening toward the outer edge or collapsing at the center.
- Fixed the clipping of outside pie labels. PieChart now reserves vertical space for SliceLabel.Outside labels instead of shrinking the pie to fit them inside the chart bounds.
- Deprecated pieSeries in favor of pieModel, aligning the pie API with the candlestick, column, and line transaction functions.
- Improved ShapeComponent drawing performance. Resolved Outlines are now drawn directly instead of being replayed into a reusable Path, so rectangles and rounded rectangles skip path construction entirely.
- Relocated CartesianLayerDrawingModel and CartesianLayerDrawingModelInterpolator from com.patrykandpatrick.vico.compose.common.data to com.patrykandpatrick.vico.compose.cartesian.data. Deprecated type aliases remain at the old locations.
v3.3.0-next.2预发布2026-08-08
Overview
- breaking changes: minor
- addressed: #1369
- external contributors: @adrcotfas, @lewan42
Changes
- Added content-area chart sizing. CartesianChartHost and PieChartHost gain a chartAreaHeight parameter, which sets the default height of the coordinate system (for Cartesian charts) or the default pie diameter (for pie charts). The legend, the marker, the axis margins, and other components now add to this height rather than being fitted inside a capped total height. The defaults are 192 dp for Cartesian charts and 232 dp for pie charts. Modifier.height and similar still constrain the component bounds.
- Deprecated MeasuringContext.canvasSize in favor of MeasuringContext.canvasWidth. With chartAreaHeight, the canvas height isn’t necessarily known during measuring. When drawing, read the full size from DrawingContext.canvasSize, narrowing your receiver from MeasuringContext to DrawingContext where needed. See the deprecation messages for more.
- Deprecated BaseAxis.Size.Fraction. Its main use case—keeping the chart area’s height constant as the x-axis height changes—is now served by chartAreaHeight. Relatedly, HorizontalAxis’s automatic-height cap is now a fixed 64 dp instead of a fraction of the canvas height.
- Alleviated the 3.3.0-next.1 breaking changes. All VicoScrollState constructor parameters now have defaults, matching rememberVicoScrollState, so direct construction no longer requires xSnapStep and snapAnimationSpec. titlePosition moved to the end of the HorizontalAxis and VerticalAxis factory, copy, and constructor signatures, so positional calls that pass tickPosition and lineDrawingOrder keep compiling.
- Added visible-x-range preservation across data updates. When a chart’s x-range shifts (its minX or xStep changes), VicoScrollState recomputes the scroll value so the same x-coordinates stay on screen, keeping prepended history from jumping the viewport to the start edge. The correction runs during measurement, so the adjusted value is used by the frame that draws the new data, and it works in both LTR and RTL layouts.
- Fixed two VicoScrollState scroll-position regressions. The scroll anchor no longer drifts by the trimmed amount when data is removed from the start side while the scroll is pinned to the end, and a zoom’s stale scroll compensation is no longer applied when a pinch transitions straight into a pan or fling.
- Prevented an UpdateReceiver leak when a chart’s identity changes. Registration, transformation, and unregistration with CartesianChartModelProducer now use the effect-stable chart ID rather than a value that mutates on recomposition.
- Fixed PieChart slice spacing, which now yields a constant-width gap for both donuts and holeless pies instead of widening toward the outer edge or collapsing at the center.
- Fixed the clipping of outside pie labels. PieChart now reserves vertical space for SliceLabel.Outside labels instead of shrinking the pie to fit them inside the chart bounds.
- Deprecated pieSeries in favor of pieModel, aligning the pie API with the candlestick, column, and line transaction functions.
- Improved ShapeComponent drawing performance. Resolved Outlines are now drawn directly instead of being replayed into a reusable Path, so rectangles and rounded rectangles skip path construction entirely.
v3.3.0-next.1预发布2026-06-27
> [!WARNING]
> Android is now Compose-first. Moving forward, like the official view-based Jetpack libraries, Vico’s views module will receive only critical fixes. Its versioning is being decoupled, and the following applies only to compose. The views guide, API reference, and sample charts remain available.
>
> If your project will stay view-based for the foreseeable future and you need the latest Vico features, you can use the compose module with ComposeView.
Overview
- breaking changes: minor
- addressed: #351, #394, #594, #1003, #1313, #1475, #1478, #1485
- external contributors: @hjf-codecrazy, @nagatsuka-shuuya, @rubixhacker
Changes
- Introduced per-type CartesianLayerDrawingModelInterpolator factories: line, column, and candlestick. The old default factory and the CartesianLayerDrawingModel.transform and Entry.transform hooks are deprecated; layer-specific interpolators now own interpolation policy. If you customized interpolation, consult the deprecation messages.
- Added a reveal animation for LineCartesianLayer. Passing CartesianLayerDrawingModelInterpolator.line(sweep = true) for drawingModelInterpolator animates a line’s first appearance as a clip sweeping in from the start.
- Added configurable axis title positions. HorizontalAxis and VerticalAxis gain a titlePosition property, and BaseAxis.TitlePosition defines the available values (Side and End). Their factory and copy functions also gain a titlePosition parameter; positional calls that pass later parameters may need to switch to named arguments.[^1]
- Added separate initial-animation settings. CartesianChartHost gains an initialAnimationSpec parameter, which defaults to animationSpec and can be set to null to skip the initial reveal animation. The animateIn parameter is deprecated; set initialAnimationSpec to null instead.
- Added VicoZoomState.animateZoom for animating zoom programmatically.
- Added snap scrolling. rememberVicoScrollState and VicoScrollState gain xSnapStep and snapAnimationSpec; when xSnapStep is set, the scroll position snaps to multiples of the given x-step after a fling. Direct VicoScrollState constructor calls must pass the new parameters.[^1]
- Added the option to anchor extreme HorizontalAxis labels to the plot-area edges without shrinking the plot area, preventing clipping. HorizontalAxis.ItemPlacer.aligned gains a shiftExtremeLabels parameter, and HorizontalAxis.ItemPlacer gains getShiftExtremeLabels.
- Relocated CartesianLayerDrawingModel and CartesianLayerDrawingModelInterpolator from com.patrykandpatrick.vico.compose.common.data to com.patrykandpatrick.vico.compose.cartesian.data. Deprecated type aliases remain at the old locations.
[^1]: These minor breaking changes will be alleviated in subsequent prereleases; they will not be present in version 3.3.0.
v2.5.22026-06-21
Overview
- breaking changes: none
- addressed: #1517
Common
- Fixed AreaFill.single and AreaFill.double sometimes painting the area fill on the wrong side of the line for degenerate or self-intersecting line paths, such as those produced by strongly curved or custom point connectors. Area fills are now built as a single polygon closed to the split line and positioned with canvas clipping rather than a boolean path operation, so degenerate subjects can no longer invert the fill.
v3.2.32026-06-20
Overview
- breaking changes: none
- addressed: #1517
Common
- Fixed AreaFill.single and AreaFill.double sometimes painting the area fill above the line instead of below it for certain scrolled or zoomed windows of a catmullRom-interpolated line. The underlying Interpolator implementation now clamps each segment’s Bézier control points to the segment’s x-range, keeping the spline monotonic in x for unevenly spaced points, and the area fill is built from a single polygon positioned with canvas clipping rather than a boolean path operation, so a degenerate subject can no longer invert the result.
v3.2.22026-06-04
Overview
- breaking changes: none
- addressed: #1509
compose
- Restored the Kotlin/JS browser target for the compose, compose-m2, and compose-m3 artifacts.
- Restored executable Wasm binaries for the published Compose web variants.
v3.2.12026-06-01
Overview
- breaking changes: none
- addressed: #1025
Common
- Improved LineCartesianLayer fade-in performance by compositing all series onto a single offscreen layer per frame rather than one per series. This also prevents interseries bleed-through during the intro animation.
v2.5.12026-06-01
Overview
- breaking changes: none
- addressed: #1416, #1425, #1436, #1491
Common
- Prevented the built-in CartesianLayer implementations from trimming their data to their reported x-ranges (sometimes incompletely).
- Fixed a bug in which combo charts could show only one series in the marker when targets shared an x-position. Marker-target narrowing now compares horizontal positions with a subpixel tolerance instead of exact Float equality, so targets that coincide at the same x are all kept, while grouped columns still narrow to the tapped one.
multiplatform
- Fixed ShapeComponent ignoring margins.
- Fixed VerticalAxis using titleComponent instead of label for Size.Text.