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.LabelPositionconstant,Bottom, has been added. This positions the label below theCartesianLayerarea. - We’ve addressed an issue where, for multi-series
ColumnCartesianLayers withMergeMode.Grouped,CartesianMarkerVisibilityListener#onMovedwasn’t called when aCartesianMarkerwas moved from one column in a group to another. - In
CartesianMarkerVisibilityListener,onMovedhas been renamed toonUpdated, as this better reflects when the function is invoked.onMovedis 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 ofvalandvar, and the properties’ visibility waspublic. This was left over from when some of the properties weren’t constructor properties.)
- A new
DefaultCartesianMarker.LabelPositionconstant,Bottom, has been added. This positions the label below theCartesianLayerarea. - We’ve addressed an issue where, for multi-series
ColumnCartesianLayers withMergeMode.Grouped,CartesianMarkerVisibilityListener#onMovedwasn’t called when aCartesianMarkerwas moved from one column in a group to another. - In
CartesianMarkerVisibilityListener,onMovedhas been renamed toonUpdated, as this better reflects when the function is invoked.onMovedis 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 ofvalandvar, 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.Verticalimplementations misbehaved whenBaseAxis#labelwasnull, causingOutOfMemoryErrors.
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.