No, sadly most Javascript APIs seem to use array-of-structs. It is definitely easier to write the code that way. I suspect most graphing libraries start out like that and then by the time they try to plot a heat map with a million points it is too late to fix.
Traditionally plotting libraries like Matlab and Matplotlib work on arrays of data.
Traditionally plotting libraries like Matlab and Matplotlib work on arrays of data.