patrykandpatrick / vico

A light and extensible chart library for Android.
https://patrykandpatrick.com/vico/wiki
Apache License 2.0
2.08k stars 125 forks source link

Unexpected background shader when using View Mode in examples Chart 7. #518

Closed MacroLens closed 8 months ago

MacroLens commented 8 months ago

How to reproduce

Looking at the sample code for the latest version 2.0.0-alpha.5, changing the transaction for the modelProdcer5 to the following:

modelProducer5.tryRunTransaction {
                    add(RandomCartesianModelGenerator.getRandomLineLayerModelPartial(y = -100f..20f, seriesCount = 3))
                }

and observing Chart7 we get different versions of the chart depending on the UISystem.

Observed behavior

When observing with Compose: image When observing with View: image

Looks like the background shader in View is still on?

Expected behavior

The different UI Systems should appear the same.

Vico version(s)

Latest unstable version

Android version(s)

Latest SDK Version

Additional information

No response

patrickmichalik commented 8 months ago

Hello! Thanks for the report. We’ll look into this.

patrickmichalik commented 8 months ago

Vico 2.0.0 Alpha 6 addresses this. Cheers!