in MotionMark/resources/debug-runner/graph.js [29:60]
updateGraphData: function(testResult, testData, options)
{
var element = document.getElementById("test-graph-data");
element.innerHTML = "";
element._testResult = testResult;
element._options = options;
// top, right, bottom, left.
var margins = new Insets(30, 30, 50, 40);
// Note that changes to header content (in onGraphTypeChanged()) can change the available size, so we prepopulate
// "score" and "confidence" elements with non-breaking spaces in the HTML.
var size = Point.elementClientSize(element);
// Convert from compact JSON output to propertied data
var samplesWithProperties = {};
[Strings.json.controller, Strings.json.complexity].forEach(function(seriesName) {
var series = testData[Strings.json.samples][seriesName];
samplesWithProperties[seriesName] = series.toArray();
})
this._targetFrameRate = options["frame-rate"] || 60;
this.createTimeGraph(testResult, samplesWithProperties[Strings.json.controller], testData[Strings.json.marks], testData[Strings.json.controller], options, margins, size);
this.onTimeGraphOptionsChanged();
this._showOrHideNodes(true, "form[name=graph-type]");
document.forms["graph-type"].elements["type"] = "complexity";
this.createComplexityGraph(testResult, testData[Strings.json.controller], samplesWithProperties, options, margins, size);
this.onComplexityGraphOptionsChanged();
this.onGraphTypeChanged();
},