1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 2 * Global Institute for Water Security | Global Water Futures 3 * Copyright (c) 2022 All Rights Reserved 4 * Author: Stephen O'Hearn 5 * 6 * This javascript creates a graph 7 * 8 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 9 10function jsDisplayAllChartsOnPage(mode) { // do this on page shown 11 var chartElements = document.getElementsByClassName("gwf-chart"); 12 for (var i = 0; i < chartElements.length; i++) { 13 var chartId = chartElements[i].id; // e.g., graphNumberOne (its div container is graphNumberOne_div) 14 var chartTextAreaId = chartId + "_ta"; // associated text area is: 'graphNumberOne_ta' 15 jsCreateChart(chartId, mode); 16 var chartData = document.getElementById(chartTextAreaId).value; 17 var cleanedChartData = jsSetChartData(chartId, chartData); 18 document.getElementById(chartTextAreaId).value = cleanedChartData; 19 20 21 // 22 //jsSetChartData(chartId, 23 // "begin: chart\nTitle: Chart Identifier \"" + chartId+"\"\nxAxisTitle: Measurement Date\nyAxisTitle: Water Level (m)\nseries: Current Water Levels\n2022-03-21, 58\n2022-07-09, 24\nseries: Current Oil Levels\n2022-03-18, 44\n2022-06-14, 87\n2022-09-22, 77\nend" 24 //); 25 } 26} 27
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.