Skip to content

Commit

Permalink
filter after map
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Dec 22, 2021
1 parent d06b0ff commit 48ff86a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scales/scale.radialLinear.js
Expand Up @@ -322,11 +322,11 @@ export default class RadialLinearScale extends LinearScaleBase {

// Point labels
this._pointLabels = this.getLabels()
.filter((v, i) => this.chart.getDataVisibility(i))
.map((value, index) => {
const label = callCallback(this.options.pointLabels.callback, [value, index], this);
return label || label === 0 ? label : '';
});
})
.filter((v, i) => this.chart.getDataVisibility(i));
}

fit() {
Expand Down

0 comments on commit 48ff86a

Please sign in to comment.