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

Function updateDateTimeRangeSpan

jena-weather/ui.js:80–88  ·  view source on GitHub ↗
(jenaWeatherData)

Source from the content-addressed store, hash-verified

78export let currBeginIndex = 0;
79
80export function updateDateTimeRangeSpan(jenaWeatherData) {
81 const timeSpan = timeSpanSelect.value;
82 const currEndIndex = currBeginIndex + TIME_SPAN_RANGE_MAP[timeSpan];
83 const begin =
84 new Date(jenaWeatherData.getTime(currBeginIndex)).toLocaleDateString();
85 const end =
86 new Date(jenaWeatherData.getTime(currEndIndex)).toLocaleDateString();
87 dateTimeRangeSpan.textContent = `${begin} - ${end}`;
88}
89
90export function updateScatterCheckbox() {
91 const series1 = selectSeries1.value;

Callers 1

plotDataFunction · 0.90

Calls 1

getTimeMethod · 0.80

Tested by

no test coverage detected