dexjs
dexjs copied to clipboard
Some kind data is not accepted
Just starting with dex.js, I tried the example https://bl.ocks.org/PatMartin/0fccfddf5277e01cd5024d963f0caa70, which worked fine.
I then replaced the presidential data with
["10.1.1.1", "10.2.2.2", "22"],
["10.1.1.1", "10.2.2.2", "50"],
["10.1.1.2", "10.2.2.2", "22"],
["10.1.1.3", "10.2.2.2", "22"]
The chart crashed, DevTools show
Uncaught TypeError: Cannot read property 'id' of undefined
I did some try-and-fail tests and it looks like the data must be alphanumeric? For instance bare numbers ("45") are rejected when the data are only numbers, while numbers with an underscore are fine ("45_")