Skip to content

Commit

Permalink
Merge branch 'main' into feat/predefined-search-config
Browse files Browse the repository at this point in the history
  • Loading branch information
anninowak committed Dec 4, 2023
2 parents 8947996 + 2e5ce95 commit 62ffc2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class DiagramComponent implements OnInit, OnChanges {
const inputData = this.data.map((diagramData) => diagramData.value)

this.amountOfData = this.data.reduce((acc, current) => acc + current.value, 0)
const COLORS = interpolateColors(this.amountOfData, colorScale, colorRangeInfo)
const COLORS = interpolateColors(this.data.length, colorScale, colorRangeInfo)
this.chartData = {
labels: this.data.map((data) => data.label),
datasets: [
Expand Down

0 comments on commit 62ffc2e

Please sign in to comment.