Themes(climbing): make map bigger, fix histogram

This commit is contained in:
Pieter Vander Vennet 2025-07-11 04:26:56 +02:00
parent 2ddf0c36be
commit 7f6ccda387
4 changed files with 30 additions and 16 deletions

View file

@ -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
}
})