Skip to content
Snippets Groups Projects
Commit 340bf502 authored by esikkala's avatar esikkala
Browse files

Clean up linear scale mapper

parent 7d073f64
No related branches found
No related tags found
No related merge requests found
......@@ -172,7 +172,7 @@ export const linearScale = ({ data, config }) => {
const { variable, minAllowed, maxAllowed } = config
const length = data.length
const min = data[length - 1][variable]
const max = data[0].[variable]
const max = data[0][variable]
data.forEach(item => {
if (item[variable]) {
const unscaledNum = item[variable]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment