vico icon indicating copy to clipboard operation
vico copied to clipboard

[TopBottomShader] with negative values splits the line color into two

Open mak1nt0sh opened this issue 8 months ago • 1 comments

How to reproduce

Use LineSpec with

shader = TopBottomShader(
topShader = DynamicShader.color(MaterialTheme.colorScheme.primary),
bottomShader = DynamicShader.color(MaterialTheme.customColors.negative)
)

and have postive, negative and zero values in ySeries

Observed behavior

Zero,Positive & Negative Screenshot 2024-07-03 at 13 29 18

Zero & Negative Screenshot 2024-07-03 at 13 34 32

Zero & Positive Screenshot 2024-07-03 at 13 50 52

Expected behavior

Zero values should be treated as positive and be drawn using topShader.

Vico version(s)

2.0.0-alpha.21

Android version(s)

Any

Additional information

No response

mak1nt0sh avatar Jul 03 '24 10:07 mak1nt0sh