Closed zell-mbc closed 3 months ago
Hello! Thank you for the report. We'll fix this problem in the next release. For the time being you can change the AxisValueOverrider
after creating the CandlestickCartesianLayer
instance, as the AxisValueOverrider
is accessible as an instance property. For example:
rememberCandlestickCartesianLayer(/* some arguments */)
.apply { axisValueOverrider = yourAxisValueOverrider }
Worked right away, thanks for the quick turnaround.
Worked right away, thanks for the quick turnaround.
You're welcome!
Vico 2.0.0 Alpha 20 resolves this. Cheers!
How to reproduce
I am using the
axisValueOverrider
function to optimize real estate when displaying a chart. Basically not starting the y axis at 0 but rather at the data sets lowest value. This works fine for line charts andrememberLineCartesianLayer
but it seems that feature is missing forrememberCandlestickCartesianLayer
?Observed behavior
No
axisValueOverrider
Expected behavior
The same
axisValueOverrider
as inrememberLineCartesianLayer
Vico version(s)
Latest stable version
Android version(s)
Any
Additional information
Line chart example
Same data as candle stick with the bottom part of the chart (60 and below) being empty space.