Skip to content

Commit 57a81ef

Browse files
committed
fix: line chart colors fix while zoomed in
1 parent dd50c42 commit 57a81ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/charting/renderer/LineChartRenderer.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,8 @@ export class LineChartRenderer extends LineRadarRenderer {
452452
if (shaderColors.length === 0) {
453453
shaderColors.push(lastColor);
454454
positions.push(0);
455+
shaderColors.push(lastColor);
456+
positions.push(1);
455457
}
456458
break;
457459
}
@@ -503,7 +505,6 @@ export class LineChartRenderer extends LineRadarRenderer {
503505

504506
this.mXBounds.set(this.mChart, dataSet, this.mAnimator);
505507
let points;
506-
507508
switch (dataSet.getMode()) {
508509
default:
509510
case Mode.LINEAR:

0 commit comments

Comments
 (0)