Releases: patrykandpatrick/vico
Releases · patrykandpatrick/vico
v2.5.2
Overview
- breaking changes: none
- addressed: #1517
Common
- Fixed
AreaFill.singleandAreaFill.doublesometimes 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.2
v3.2.1
v3.2.0
Overview
- breaking changes: minor
- addressed: #924, #1320, #1391, #1412, #1414, #1416, #1425, #1426, #1436, #1491
- external contributors: @rubixhacker, @jared-loseit
Common
- Added
visiblePaddingtoLineCartesianLayer.Interpolator. - Prevented the built-in
CartesianLayerimplementations from trimming their data to their reported x-ranges (sometimes incompletely). - Fixed the default x-step ignoring minimum-x overrides.
getXStephas newminXandmaxXparameters; the single-parameter variant is deprecated. - 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
Floatequality, so targets that coincide at the same x are all kept, while grouped columns still narrow to the tapped one. - Renamed
candlestickSeries,columnSeries, andlineSeriestocandlestickModel,columnModel, andlineModel, respectively. The old functions are deprecated. - Introduced a key system for
CartesianLayermodels and series.candlestickModeland theseriesfactory functions have newkeyparameters; keys set here are exposed downstream. This makes it easier and more robust to associate styles and events with models and series, and it letsCartesianLayerDrawingModelInterpolatorimplementations better handle nonfinal-series deletion. - In connection with change 6, added
ColumnCartesianLayerModel.Entry.seriesKey,LineCartesianLayerModel.Entry.seriesKey,CartesianLayerDrawingModel.seriesKeys, andCandlestickCartesianLayerMarkerTarget.modelKey. - In connection with change 6, adjusted the signatures of several functions and constructors. The old overloads are deprecated; see the deprecation messages for more. There’s one minor breaking change:
LineCartesianLayer.LineProvider.getLinehas a newseriesKeyparameter at the start.1 - In connection with change 6, updated the default
CartesianLayerDrawingModelInterpolatorimplementation to more inteligently handle nonfinal-series deletion when series keys are provided.
compose
- Added a
compose-glancemodule, which providesCartesianChartImageandPieChartImagecomposables for Glance widgets. - Fixed an issue where single-slice pie charts could render blank.
- Fixed
ShapeComponentignoringmargins. - Fixed zero-duration automatic scrolls being delayed by a frame.
- Fixed an issue where charts with markers could needlessly consume taps and long presses, blocking upstream detection.
- Fixed
VerticalAxisusingtitleComponentinstead oflabelforSize.Text. - Fixed
LineCartesianLayer.rememberLineomittingdataLabelValueFormatterfrom the key list, leading to skipped recompositions.
-
LineCartesianLayer.LineProvideris a functional interface, and Kotlin offers no means of effectively updating the signature of such an interface’s abstract function in a backward-compatible manner. Introducing a replacement interface would’ve created API pollution disproportional to this trivial change. ↩
v3.2.0-next.6
Overview
- breaking changes: none
- addressed: #1491
Common
- 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
Floatequality, so targets that coincide at the same x are all kept, while grouped columns still narrow to the tapped one.
v2.5.1
Overview
Common
- Prevented the built-in
CartesianLayerimplementations 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
Floatequality, so targets that coincide at the same x are all kept, while grouped columns still narrow to the tapped one.
multiplatform
- Fixed
ShapeComponentignoringmargins. - Fixed
VerticalAxisusingtitleComponentinstead oflabelforSize.Text.
v3.2.0-next.5
Overview
- breaking changes: negligible
- external contributors: @jared-loseit
Common
- In
CandlestickCartesianLayerDrawingModel, renamedkeytomodelKey.
compose
- Fixed
LineCartesianLayer.rememberLineomittingdataLabelValueFormatterfrom the key list, leading to skipped recompositions.
v3.2.0-next.4
Overview
Common
- For clarity, renamed
candlestickSeries,columnSeries, andlineSeriestocandlestickModel,columnModel, andlineModel, respectively. The old functions are deprecated. - Introduced a key system for
CartesianLayermodels and series.candlestickModeland theseriesfactory functions have newkeyparameters; keys set here are exposed downstream. This makes it easier and more robust to associate styles and events with models and series, and it letsCartesianLayerDrawingModelInterpolatorimplementations better handle nonfinal-series deletion. - In connection with change 2, added
ColumnCartesianLayerModel.Entry.seriesKey,LineCartesianLayerModel.Entry.seriesKey,CartesianLayerDrawingModel.seriesKeys, andCandlestickCartesianLayerMarkerTarget.modelKey. - In connection with change 2, adjusted the signatures of several functions and constructors. The old overloads are deprecated; see the deprecation messages for more. There’s one minor breaking change:
LineCartesianLayer.LineProvider.getLinehas a newseriesKeyparameter at the start.1 - In connection with change 2, updated the default
CartesianLayerDrawingModelInterpolatorimplementation to more inteligently handle nonfinal-series deletion when series keys are provided.
-
LineCartesianLayer.LineProvideris a functional interface, and Kotlin offers no means of effectively updating the signature of such an interface’s abstract function in a backward-compatible manner. Introducing a replacement interface would’ve created API pollution disproportional to this trivial change. ↩
v2.5.0
Overview
Common
- Fixed the default x-step ignoring minimum-x overrides.
getXStephas newminXandmaxXparameters; the single-parameter variant is deprecated. - Fixed an issue where the
CartesianMarkerframework conflated items with equal x-values but different pixel x-coordinates, such as grouped columns inColumnCartesianLayers. - Fixed
HorizontalBoxandHorizontalLineomittingyandlabelinequals, leading to skipped updates.
v3.2.0-next.3
Overview
- breaking changes: none
- addressed: #1320
Common
- Fixed the default x-step ignoring minimum-x overrides.
getXStephas newminXandmaxXparameters; the single-parameter variant is deprecated.