mirror of
https://github.com/apache/superset.git
synced 2026-06-05 07:39:19 +00:00
Fix deck.gl Polygon not show (#6545)
* Fix deck.gl Polygon not show * Replace "//" to "// "
This commit is contained in:
committed by
Maxime Beauchemin
parent
b06941945c
commit
926f78c21d
@@ -89,8 +89,10 @@ export function getBuckets(fd, features, accessor) {
|
||||
breakPoints.slice(1).forEach((value, i) => {
|
||||
const range = breakPoints[i] + ' - ' + breakPoints[i + 1];
|
||||
const mid = 0.5 * (parseInt(breakPoints[i], 10) + parseInt(breakPoints[i + 1], 10));
|
||||
// fix polygon doesn't show
|
||||
const metricLabel = fd.metric ? fd.metric.label || fd.metric : null;
|
||||
buckets[range] = {
|
||||
color: colorScaler({ [fd.metric.label || fd.metric]: mid }),
|
||||
color: colorScaler({ [metricLabel || fd.metric]: mid }),
|
||||
enabled: true,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user