Skip to main content

1.14.0

This release introduces fixes and improvements, including a performance boost.

Breaking changesAddressed
None#467, #488, #500, #502, #503, #523, #526, #549

The following bug fixes have been made:

  • A synchronization issue that affected ChartEntryModelProducer and ComposedChartEntryModelProducer and led to ChartValuesProvider.Empty-related crashes has been resolved.
  • A problem where ComposedCharts’ default x step could be incorrectly determined and cause IllegalStateExceptions in ColumnCharts has been resolved.
  • An issue where ComposedCharts failed to draw Decorations applied to their children (individual Charts) 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 to Float imprecision.
  • ExtraStore has been updated to override equals and hashCode. Thus, content-based comparisons of ChartEntryModels are now possible (provided that the ChartEntryModels have field-based equals implementations, as is the case for all ChartEntryModels 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 on androidx.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 the startAnimation lambda of registerForUpdates instead.
  • In registerForUpdates, onModelCreated now has two parameters. The overload in which onModelCreated has one parameter is deprecated.