v1.4.0
patrykandpatrickbot
released this
15 Aug 09:09
·
1277 commits
to master
since this release
This release includes the following changes.
Additions
LineChart
now allows you to specify the horizontal position of each point in its corresponding segment. WhenPointPosition.Start
is used, there’s no gap between the left edge of the chart and the line’s first point.LineChart.LineSpec
now allows for granular control of the line’s shape viaLineChart.LineSpec.PointConnector
. See also the first point under “API changes.”- You can now disable the initial animation for charts. This is possible via the
runInitialAnimation
parameter of theChart
composable, and therunInitialAnimation
field ofBaseChartView
.
API changes
- The
cubicStrength
parameter of theLineChart.LineSpec
constructor is deprecated. The same applies to thecubicStrength
parameter of thelineSpec
composable function. Instead, provide aLineChart.LineSpec.PointConnector
with a customcubicStrength
value. See also the second point under “Additions.” ChartModelProducer#registerForUpdates
now has agetOldModel
parameter. See also the third point under “Resolved issues.”ChartModelProducer
now has anisRegistered
function.
Resolved issues
MarkerCorneredShape
could trigger a crash in certain instances.ColumnChart
could create redundant touch detection areas for markers.ChartEntryModelProducer#registerForUpdates
calledupdateListener
beforeDiffProcessor#setEntries
and calledprogressModelSynchronously
withprogress
equal to zero after callingupdateListener
. This could cause issues during chart creation. See also the second point under “API changes.”BaseChartView
didn’t callChartModelProducer#unregisterFromUpdates
when detached from its window. This could potentially cause memory leaks.