MCPcopy
hub / github.com/tensorflow/tfjs-examples / plotData

Function plotData

jena-weather/index.js:56–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 * - A scatter plot that plots two timeseries against on another.
55 */
56export function plotData() {
57 logStatus('Rendering data plot...');
58 const {timeSpan, series1, series2, normalize, scatter} = getDataVizOptions();
59
60 if (scatter && series1 !== 'None' && series2 !== 'None') {
61 // Plot the two series against each other.
62 makeTimeSeriesScatterPlot(series1, series2, timeSpan, normalize);
63 } else {
64 // Plot one or two series agains time.
65 makeTimeSeriesChart(
66 series1, series2, timeSpan, normalize, dataChartContainer);
67 }
68
69 updateDateTimeRangeSpan(jenaWeatherData);
70 updateScatterCheckbox();
71 logStatus('Done rendering chart.');
72}
73
74/**
75 * Plot zero, one or two time series against time.

Callers 2

ui.jsFile · 0.90
runFunction · 0.70

Calls 6

logStatusFunction · 0.90
getDataVizOptionsFunction · 0.90
updateDateTimeRangeSpanFunction · 0.90
updateScatterCheckboxFunction · 0.90
makeTimeSeriesChartFunction · 0.85

Tested by

no test coverage detected