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
ChartEntryModelProducer
andComposedChartEntryModelProducer
and led toChartValuesProvider.Empty
-related crashes has been resolved. - A problem where
ComposedChart
s’ default x step could be incorrectly determined and causeIllegalStateException
s inColumnChart
s has been resolved. - An issue where
ComposedChart
s failed to drawDecoration
s applied to their children (individualChart
s) 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
Chart
y range is now [0, 1]. This resolves problems related to division by zero.
The following improvements have been made:
- When
getXStep
is 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 toFloat
imprecision. ExtraStore
has been updated to overrideequals
andhashCode
. Thus, content-based comparisons ofChartEntryModel
s are now possible (provided that theChartEntryModel
s have field-basedequals
implementations, as is the case for allChartEntryModel
s generated by the built-in APIs).- The logic responsible for calculating the default x step is now twice as fast.
- The
compose
module no longer depends onandroidx.compose.ui:ui-tooling
.
There are two deprecations in ChartModelProducer
. These are highly unlikely to affect you.
transformModel
is deprecated. Use the function passed to thestartAnimation
lambda ofregisterForUpdates
instead.- In
registerForUpdates
,onModelCreated
now has two parameters. The overload in whichonModelCreated
has one parameter is deprecated.