Releases: patrykandpatrick/vico
Releases · patrykandpatrick/vico
v1.0.0-beta.1
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
.
v1.0.0-alpha.3
This version introduces the following changes.
Additions
- A
composedChartEntryModelOf
function for creatingComposedChartEntryModel
s. - A
ChartEntryModel#plus
function for creatingComposedChartEntryModel
s.
Improvements
verticalGradient
is no longer a composable function.
Resolved issues
- Charts were drawn incorrectly if the layout direction was right-to-left.
- Charts created via the
Chart
composable werenʼt scrollable ifmarker
was null. - Line charts were drawn incorrectly if
minY
ormaxY
was overridden. - In line charts, the line was clipped near the top and bottom of the chart.
- The
strokeColor
parameter of theShapeComponent
constructor wasnʼt respected. - Marker guidelines could be off-center relative to their corresponding chart entries.
- In
DashedShape
, ifdashLengthDp
anddashGapDp
were both set to0f
, an infinite loop would occur.
Dependency updates
- All modules use Kotlin 1.6.20.
compose
,compose-m2
, andcompose-m3
use Jetpack Compose version1.2.0-alpha08
.compose-m3
usescompose.material3
version1.0.0-alpha10
.
v1.0.0-alpha.2
This version introduces the following changes.
Additions
- A
tintDrawable
parameter indrawableShape
. - XML attributes for the positions of labels along vertical axes and the rotation of axis labels.
- Default values for the
density
,fontScale
, andisLtr
parameters ofdrawContext
.
Resolved issues
- The drawing of some labels along vertical axes could be wrongly skipped.
- The shadows of persistent markers were clipped.
- Vertical axes could display a label of negative zero.
- Top horizontal axes were drawn too high up.
drawableShape
was distorted in some cases.
Other
DefaultAxisFormatter
is now calledDefaultAxisValueFormatter
.
v1.0.0-alpha.1
This is the initial release of Vico.