Closed andreiPro closed 2 years ago
Good morning Martin, Dear Team, Changed the algorithm for normalization data for Layers of Socioeconomic section.
1. Defining the minMeanNumber for each {layer}.json const onlyAllMeanNumbers = full_JSON_library.features.map(object => object.properties._mean); const minMeanNumber = Math.min(...onlyAllMeanNumbers); const maxMeanNumber = Math.max(...onlyAllMeanNumbers).
2. Calculating normalizeDataValue. const normalizeDataValue = Math.abs((_mean - minMeanNumber) / (maxMeanNumber - minMeanNumber));; const fillColor = mapPolygonColorToDensity(normalizeDataValue, layerObject).
The main difference is using the min value of _mean in entire {layer}.json file.
Good morning Martin, Dear Team, Changed the algorithm for normalization data for Layers of Socioeconomic section.
1. Defining the minMeanNumber for each {layer}.json const onlyAllMeanNumbers = full_JSON_library.features.map(object => object.properties._mean); const minMeanNumber = Math.min(...onlyAllMeanNumbers); const maxMeanNumber = Math.max(...onlyAllMeanNumbers).
2. Calculating normalizeDataValue. const normalizeDataValue = Math.abs((_mean - minMeanNumber) / (maxMeanNumber - minMeanNumber));; const fillColor = mapPolygonColorToDensity(normalizeDataValue, layerObject).
The main difference is using the min value of _mean in entire {layer}.json file.