Not sure whether this is a bug or user error, but the JSAPI does not appear to support scaling visual variable sizes to real-world distance units. Instead, it creates giant black squares. See the codepen, taken from ESRI's csvLayer example, modified to use a size visual variable that should scale with horizontal error (miles)
https://codepen.io/robmattles/pen/zYGrmOb