Skip to content

Commit

Permalink
Merge pull request onecx#26 from anninowak/feat/diagram-fix
Browse files Browse the repository at this point in the history
fix: diagram color fix
  • Loading branch information
andrejpetras authored Nov 30, 2023
2 parents 73dcf02 + 487f671 commit 2e5ce95
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 2e5ce95

Please sign in to comment.