2.0.0-alpha.21
This release introduces DefaultCartesianMarker.LabelPosition.Bottom
and includes fixes and improvements.
Breaking changes | Addressed | Contributors |
---|---|---|
Minor | #670, #701, #705, #711, #724 | @L-Andrade |
CartesianMarker
The following changes have been made:
- Compose
- Views
- A new
DefaultCartesianMarker.LabelPosition
constant,Bottom
, has been added. This positions the label below theCartesianLayer
area. - We’ve addressed an issue where, for multi-series
ColumnCartesianLayer
s withMergeMode.Grouped
,CartesianMarkerVisibilityListener#onMoved
wasn’t called when aCartesianMarker
was moved from one column in a group to another. - In
CartesianMarkerVisibilityListener
,onMoved
has been renamed toonUpdated
, as this better reflects when the function is invoked.onMoved
is deprecated. - In
DefaultCartesianMarker
, all properties are now read-only (val
), and their visibility has been changed toprotected
. All of the same settings are available, but they should be changed via the parameters ofrememberDefaultCartesianMarker
. (Previously, there was a mix ofval
andvar
, and the properties’ visibility waspublic
. This was left over from when some of the properties weren’t constructor properties.)
- A new
DefaultCartesianMarker.LabelPosition
constant,Bottom
, has been added. This positions the label below theCartesianLayer
area. - We’ve addressed an issue where, for multi-series
ColumnCartesianLayer
s withMergeMode.Grouped
,CartesianMarkerVisibilityListener#onMoved
wasn’t called when aCartesianMarker
was moved from one column in a group to another. - In
CartesianMarkerVisibilityListener
,onMoved
has been renamed toonUpdated
, as this better reflects when the function is invoked.onMoved
is deprecated. - In
DefaultCartesianMarker
, all properties are now read-only (val
), and their visibility has been changed toprotected
. All of the same settings are available, but they should be changed via the constructor parameters. (Previously, there was a mix ofval
andvar
, and the properties’ visibility waspublic
. This was left over from when some of the properties weren’t constructor properties.)
VerticalAxis
The following issues have been resolved:
- Labels were sometimes unexpectedly truncated.
- With
HorizontalLabelPosition.Inside
, excessive horizontal insets were requested, creating unwanted empty space. - The default
AxisItemPlacer.Vertical
implementations misbehaved whenBaseAxis#label
wasnull
, causingOutOfMemoryError
s.
ColumnCartesianLayer
We’ve fixed an issue where ColumnCartesianLayer
could throw an IllegalStateException
(“Each entry’s x value must be a multiple of the x step”) when it shouldn’t have. This was related to Float
imprecision.