fill the area below a chart curve only when there are at most 2 curves

This makes charts more readable when there are many curves in it.
 Fixes #1823
This commit is contained in:
Peter Hercek
2024-01-13 15:14:51 +01:00
committed by Dennis Guse
parent 1ae18836cb
commit 7ebb629b44
2 changed files with 10 additions and 8 deletions
@@ -136,8 +136,10 @@ abstract class ChartValueSeries {
return path;
}
void drawPath(Canvas canvas) {
canvas.drawPath(path, fillPaint);
void drawPath(Canvas canvas, boolean shouldFillPathArea) {
if (shouldFillPathArea) {
canvas.drawPath(path, fillPaint);
}
canvas.drawPath(path, strokePaint);
}