mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-05 02:53:06 +02:00
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:
committed by
Dennis Guse
parent
1ae18836cb
commit
7ebb629b44
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user