npm / victory-native
victory-native
What changed in victory-native 41 to 42, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
24 new APIs and options6 behavior and defaults23 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initvictory-native 421 changes
Fixes and other changes 1
Fixes Pie.SliceAngularInset hiding sibling slices on web while preserving the existing useSliceAngularInsetPath API.
victory-native 4152 changes
New APIs and options 24
Adds Cartesian candlestick chart rendering, along with useCandlestickPaths and OHLC geometry utilities.
Optional Cartesian axis titles are added with automatic chart-space reservation.
Data label formatting options are added for Cartesian bars.
Data label rotation options are added for Cartesian bars.
Custom Cartesian axis label renderers can account for measurement.
An opt-in Skia Paragraph axis label renderer helper is added for multilingual labels.
Adds the orientation-neutral datumIndex field to stacked bar barOptions while preserving existing vertical field aliases.
Adds the orientation-neutral isEnd field to stacked bar barOptions while preserving existing vertical field aliases.
Adds the orientation-neutral isStart field to stacked bar barOptions while preserving existing vertical field aliases.
Adds the orientation-neutral seriesIndex field to stacked bar barOptions while preserving existing vertical field aliases.
Adds HorizontalStackedBar for stacked bar charts inside CartesianChart orientation="horizontal".
Adds useHorizontalStackedBarPaths for stacked bar charts inside CartesianChart orientation="horizontal".
Set orientation to horizontal to use horizontal Cartesian bar charts.
A new component for horizontal Cartesian bar charts.
A new component for horizontal Cartesian bar charts.
Allows chart press gestures to run simultaneously with external gesture refs, such as parent scroll views.
Exports the rounded rectangle path helper for use by chart consumers.
Exports the bar overlay helper for use by chart consumers.
Adds transform pan activation and failure offset options to coordinate chart panning with parent scroll gestures.
Exports the bar overlay helper for use by chart consumers.
Exports the Cartesian chart context hook for use by chart consumers.
Exports a hook that lets chart children read the current transform scale and translation.
CartesianChart and PolarChart now support explicitSize.
CartesianChart and PolarChart now support headless rendering.
Behavior and default changes 6
The formatter type now receives numeric value ticks, matching the runtime axis role.
The formatter type now receives xKey category values, matching the runtime axis role.
Cartesian chart mutable action refs are assigned through React's imperative handle, and Reanimated shared-value action refs are supported for worklet custom gestures.
Cartesian x- and y-axis labels support newline-delimited multiline text.
These components return JSX elements so their declaration types can be used as JSX components.
Changes scrolling and scrubbing; the notes do not specify further details.
Fixes and other changes 22
Legacy frame line color and width are preserved when Cartesian axes are normalized.
Cartesian bar groups and bar components respect an explicit zero bar width.
Empty formatted x- and y-axis labels no longer reserve label or offset space during layout.
Rounded bar corner radii are capped at half the rendered bar width.
Ordinal x-axis labels are measured using formatted x values instead of tick indexes.
Ordinal x-data indexes are used to normalize ticks so categorical axes respect tickCount and avoid extra scale-generated ticks.
The first and last x-axis labels remain visible by clamping label drawing inside chart bounds.
X-axis label space is not reserved when x ticks are disabled, and rotated label layout remains finite when no x ticks are rendered.
The x-axis labelOffset is used when reserving x-label layout space instead of the current y-axis offset.
Explicit empty y-axis labels are preserved during layout measurement so hidden labels do not reserve y-axis space.
Y scales remain finite when every value for a y key is missing.
A touch released before long-press pan activation is no longer replayed through chartPressState.
The gesture overlay stays aligned with the visible chart area during pan and zoom transforms.
Explicit zero values are applied, and Y-axis pan offsets are wired to their matching gesture methods.
Chart press state resets when chart data changes, preventing tooltips from remaining active on stale data.
The full scale domain is preserved when domain padding is used with a viewport.
Log y scales remain finite for missing or non-positive values, which are treated as missing points; single-value log scales remain positive and finite.
A tickCount of zero with explicit axis tickValues renders no ticks or tick labels.
Downsampled explicit axis tick values are limited to the requested tick count.
Explicit zero scale values are preserved when reading transform matrix components while axis rescaling remains finite.
Fixes Y offset options being applied to X gesture methods.
Press coordinates are mapped correctly for Cartesian charts in nested layouts and transformed charts.