forked from MapComplete/MapComplete
Themes(climbing): make map bigger, fix histogram
This commit is contained in:
parent
2ddf0c36be
commit
7f6ccda387
4 changed files with 30 additions and 16 deletions
|
|
@ -74,14 +74,17 @@ export class HistogramViz extends SpecialVisualization {
|
|||
}
|
||||
|
||||
const listSource: Store<string[]> = tagSource.map((tags) => {
|
||||
const value = tags[args[0]]
|
||||
try {
|
||||
const value = tags[args[0]]
|
||||
if (value === "" || value === undefined) {
|
||||
return undefined
|
||||
}
|
||||
if(Array.isArray(value)){
|
||||
return value
|
||||
}
|
||||
return JSON.parse(value)
|
||||
} catch (e) {
|
||||
console.error("Could not load histogram: parsing of the list failed: ", e)
|
||||
console.error("Could not load histogram: parsing of the list failed: ", e,"\nthe data to parse is",value)
|
||||
return undefined
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue