We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc5d3fa commit e5db9f7Copy full SHA for e5db9f7
src/js/dataVisualization.js
@@ -34,6 +34,7 @@ class DataVisualization {
34
value = parseFloat(this._values[regionCode])
35
36
if (!isNaN(value)) {
37
+ // console.log(this.getValue(value))
38
attrs[regionCode] = this.getValue(value)
39
}
40
@@ -51,7 +52,7 @@ class DataVisualization {
51
52
53
getValue(value) {
54
if (this.min === this.max) {
- return this.hexToRgb(this._toColor)
55
+ return `#${this._toColor.join('')}`
56
57
58
let hex, color = '#'
0 commit comments