Skip to content

Commit

Permalink
fix: diagram color range fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anninowak committed Nov 29, 2023
1 parent 73dcf02 commit 487f671
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 487f671

Please sign in to comment.