Open bobular opened 11 months ago
I've re-opened this - still seeing an issue. Looked into it more and it seems to be when the denominator is zero.
Commented on the PR here: https://github.com/VEuPathDB/EdaDataService/pull/305/files#r1322905925
Oh, I pressed the wrong button. Reopening now.
Best explained with SCORE S. mansoni CRT (of course!)
Binary variables work great now in general, e.g. Schistosoma mansoni, by microscopy
However, the other binary assay results were not performed in all countries.
So Hookworm, by microscopy for example, has no data in Tanzania - as shown in donut marker mode![image](https://github.com/VEuPathDB/EdaNewIssues/assets/308639/805d9050-a30b-4e47-b7e1-ab3bdb3fc3fe)
In bubble mode, the response for that geohash ("kx") is missing the OverlayValue (not surprising because it can't be calculated!)
This is violating the client side type checking
Error: Unexpected backend type(s) encountered: Invalid value
undefinedsupplied to overlayValue (type: number) of 1
. This was developed from the API docs forStandaloneMapBubblesPostResponse
.Should we update the docs to make
overlayValue
optional/null and then do something suitable on the client. Plain white circles (similar in style to the donut markers) - and add something in the legend?