vico
vico copied to clipboard
[TopBottomShader] with negative values splits the line color into two
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
Zero & Negative
Zero & Positive
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