ITADN

Dotplot outliers are incorrectly parsed as a single value instead of an array

#289OpenNandaniAggarwal 创建于 2026-01-07
N
NandaniAggarwalcommented
While investigating the convert_R_types function in animint.js, I identified three critical issues in how outliers are processed: Data Loss: The current logic uses parseFloat(d[v_name].split(" @ ")). In JavaScript, calling parseFloat() on an array only parses the first element and discards the rest (e.g., "100 @ 200" becomes 100 instead of [100, 200]). Shadowing Bug: There is a general r_type == "character" check before the specific v_name == "outliers" check. Since outliers are passed as characters, the specific parsing logic is never reached. Logical Operator: The condition currently uses a bitwise & instead of a logical && I have a regression test ready. Note: I used an AI assistant to help debug the R environment setup. I would like to work upon this issue for convert_R_types function @tdhock ! <img width="750" height="348" alt="Image" src="https://github.com/user-attachments/assets/a8722e0b-e0a1-40cd-b2a4-49346d00ea5c" /> <img width="745" height="223" alt="Image" src="https://github.com/user-attachments/assets/ce859c37-fbeb-45da-8dfd-a0b3a3b14a08" />
1 条评论