v1.0.0-beta.1
Pre-release
Pre-release
·
1650 commits
to master
since this release
This version includes the following changes.
Additions
ColumnChart
andLineChart
instances can now define atargetVerticalAxisPosition
. This property allows for the charts and vertical axes in aComposedChart
to be independently scaled (#73).- A single
LineChart
can now display multiple lines when supplied with aChartEntryModel
containing multiple datasets. - The
view
module has newlineChart()
andcolumnChart()
functions that createLineChart
s andColumnChart
s, respectively, using theme and style attributes.
Resolved issues
- During the measuring phase,
HorizontalAxis
didn’t provide theTextComponent
instance used for axis labels with a maximum width. This could lead to faulty truncation behavior (#77). TextComponent
instances with a custom rotation value and a maximum width could display faulty truncation behavior (#77).- Persistent markers added to a
Chart
contained in aComposedChart
were clipped.
API changes
ChartModel
has been renamed toChartValues
for clarity.LineChart
’s constructors now accept a singleLineChart.LineSpec
or aList
ofLineChart.LineSpec
s.LineChart.LineSpec
defines the style of a single line in a line chart. See also the second point in “Additions.”- Changes have been made to how line charts are customized via
ChartStyle
to account for the addition of the ability to display multiple lines in a singleLineChart
. See also the second point in “API changes” and the second point in “Additions.”
Improvements
- In the view system, charts are now scrollable and zoomable by default.
Dependency updates
- All modules use Kotlin 1.6.21.
compose
,compose-m2
, andcompose-m3
use Jetpack Compose version1.2.0-beta02
.compose-m3
usescompose.material3
version1.0.0-alpha12
.