// Based on: https://tylernwolf.com/corrdisp/index.html /* # TODO NOTES: - we now have two definitions of the data (data and labelData). The best thing would be to preprocess the data such that it is formatted as labelData (probably) */ /* * Our data is a struct with top-level keys "time" (optional) and "values" * (required). The "values" object is an array with a variable length of * variables. */ function preprocess(data) { var cleanData = []; var nVar = data.values.length; if (data["time"] != null) { console.warn("Time axis is not implemented yet. Ignoring."); } for (i=0; i