Move data to an initial JSON structure, and generate all arrays used for plots at runtime.  This is inefficient on the client side.