Closed Lonexera closed 7 months ago
Hello! Thanks for the report. This is no longer an issue in Vico 2.0.0 Alpha 1 and later. (Regarding persistent Marker
s, linking them to specific CartesianLayer
s isn’t possible yet, but this restriction manifests itself as the lack of an API that enables such functionality, not as the ignoring of input, as in Vico 1.13.1.) While we’re now focusing on Vico 2, and no new features will be added to Vico 1, we plan on releasing version 1.13.2 to address this bug. I’ll keep you updated.
Hi! Unfortunately we can't use alpha version of the library, so 1.13.2 release with the bug fix sounds great, thank you!
There’s been a small change of plans: the next stable version will be 1.14.0, not 1.13.2. This doesn’t change anything as far as the bug fix is concerned—the Decoration
problem will, of course, be resolved. Vico 1.14.0 Alpha 1 includes the fix, and Vico 1.14.0 (stable) should be out soon, as no large changes are planned.
Vico 1.14.0 is rolling out. Cheers!
How to reproduce
Add
Decoration
that draws itself throughonDrawAboveChart(..)
function into decorations list within any chart in composed chart. In the following sample code I've addedThreholdLine
to thecolumnChart
:Observed behavior
The decoration is not drawn. The
onDrawAboveChart(..)
method of theThresholdLine
class is not even called.Also noticed that decorations will be drawn if decorations list is set to the
ComposedChart
directlyDuring debug process I learned that drawDecorationAboveChart(..)
method of the
BaseChartis only called once for the
ComposedChartitself (which decorations list is empty and doesn't contain any decorations from composed charts), opposed to the
drawDecorationBehindChart(..)method that is called for
ComposedChart` and for all composed charts within it.Expected behavior
The
ThresholdLine
is drawn above the column chart.Any
Decoration
that usesonDrawAboveChart(..)
function should be drawn after the chart it was set in is drawn.Vico version(s)
Latest stable version
Android version(s)
api 34
Additional information
This bug also applies to persistent markers list