Skip to content

Commit e5db9f7

Browse files
fix: return the actual toColor hex
1 parent fc5d3fa commit e5db9f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/dataVisualization.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class DataVisualization {
3434
value = parseFloat(this._values[regionCode])
3535

3636
if (!isNaN(value)) {
37+
// console.log(this.getValue(value))
3738
attrs[regionCode] = this.getValue(value)
3839
}
3940
}
@@ -51,7 +52,7 @@ class DataVisualization {
5152

5253
getValue(value) {
5354
if (this.min === this.max) {
54-
return this.hexToRgb(this._toColor)
55+
return `#${this._toColor.join('')}`
5556
}
5657

5758
let hex, color = '#'

0 commit comments

Comments
 (0)