Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
data: datum,
value: datumValue,
formattedValue: valueFormatter(datumValue),
}
featureWithData.color = getFillColor(featureWithData)
featureWithData.label = getLabel(featureWithData)
return featureWithData
}
return feature
}),
[features, data, findMatchingDatum, getValue, valueFormatter, getFillColor]
)
const legendData = useQuantizeColorScaleLegendData({
scale: colorScale,
valueFormat: valueFormatter,
})
return {
colorScale,
getFillColor,
boundFeatures,
valueFormatter,
legendData,
}
}