Skip to content

Commit 82adf4b

Browse files
committed
fix: missing from drawValues changes
1 parent ad99dc6 commit 82adf4b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/charting/renderer/LineChartRenderer.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -576,14 +576,16 @@ export class LineChartRenderer extends LineRadarRenderer {
576576
const dataSet = dataSets[i];
577577

578578
if (!this.shouldDrawValues(dataSet) || dataSet.getEntryCount() < 1) continue;
579-
this.drawValuesForDataset(c, dataSet);
579+
this.drawValuesForDataset(c, dataSet, i);
580580
}
581581
}
582582
}
583583

584584
public drawValue(c: Canvas, valueText, x, y, color) {
585-
this.mValuePaint.setColor(color);
586-
c.drawText(valueText, x, y, this.mValuePaint);
585+
if (valueText) {
586+
this.mValuePaint.setColor(color);
587+
c.drawText(valueText, x, y, this.mValuePaint);
588+
}
587589
}
588590

589591
public drawExtras(c: Canvas) {

0 commit comments

Comments
 (0)