1.14.0
This release introduces fixes and improvements, including a performance boost.
| Breaking changes | Addressed |
|---|---|
| None | #467, #488, #500, #502, #503, #523, #526, #549 |
The following bug fixes have been made:
- A synchronization issue that affected
ChartEntryModelProducerandComposedChartEntryModelProducerand led toChartValuesProvider.Empty-related crashes has been resolved. - A problem where
ComposedCharts’ default x step could be incorrectly determined and causeIllegalStateExceptions inColumnCharts has been resolved. - An issue where
ComposedCharts failed to drawDecorations applied to their children (individualCharts) has been resolved. - Issues affecting the logic responsible for calculating the default x step have been resolved.
- For data whose y range is [0, 0], the default
Charty range is now [0, 1]. This resolves problems related to division by zero.
The following improvements have been made:
- When
getXStepis specified, redundant GCD calculations are no longer performed. This improves performance and offers a solution when GCD calculation throws a false exception, which is possible due toFloatimprecision. ExtraStorehas been updated to overrideequalsandhashCode. Thus, content-based comparisons ofChartEntryModels are now possible (provided that theChartEntryModels have field-basedequalsimplementations, as is the case for allChartEntryModels generated by the built-in APIs).- The logic responsible for calculating the default x step is now twice as fast.
- The
composemodule no longer depends onandroidx.compose.ui:ui-tooling.
There are two deprecations in ChartModelProducer. These are highly unlikely to affect you.
transformModelis deprecated. Use the function passed to thestartAnimationlambda ofregisterForUpdatesinstead.- In
registerForUpdates,onModelCreatednow has two parameters. The overload in whichonModelCreatedhas one parameter is deprecated.