public/js
src_modules
aggregateHelpers.mjs +32 -0
chartColumn.mjs +4 -29
chartHeatmap.mjs +1 -1
chartHelpers.mjs +16 -0
chartLine.mjs +6 -33
chartScatterPlot.mjs +19 -21
dropDownListAggregationAverage.mjs +117 -0
dropDownListAggregationMaximum.mjs +117 -0
dropDownListAggregationMinimum.mjs +117 -0
dropDownListAggregationSum.mjs +117 -0
dropDownListChartColumn.mjs +159 -0
dropDownListChartHeatmap.mjs +34 -0
dropDownListChartLine.mjs +159 -0
dropDownListChartScatterPlot.mjs +35 -0
dropDownListHelpers.mjs +3 -7
dropDownListProcessing.mjs +0 -849
fetchData.mjs +1 -1
appChart.js +11 -11
@@ -354,10 +354,42 @@ const extractUniqueCalendarMonthsFromCalendarDates = function (
@@ -354,10 +354,42 @@ const extractUniqueCalendarMonthsFromCalendarDates = function (
@@ -9,31 +9,6 @@ import {
@@ -9,31 +9,6 @@ import {
* @param {Array} calendarDatesMonthsStrArr An array of unique calendar dates strings (in "YYYY-MM-DD" fromat) or unique calendar months strings (in "YYYY-MM" format)
* @param {Array} formattedAggregatedResultForColumnChart An array of formatted aggregated result array(s) from one or more datastreams
@@ -96,12 +71,12 @@ const createYAxisTitleTextColumnChart = function (
@@ -96,12 +71,12 @@ const createYAxisTitleTextColumnChart = function (
* @param {Array} formattedAggResultArraysForColumnChart An array made up of formatted aggregated result array(s) suitable for use in a column chart
* @param {Object} extractedFormattedDatastreamProperties An object that contains arrays of formatted Datastream properties
@@ -136,7 +111,7 @@ const drawColumnChartHighcharts = function (
@@ -136,7 +111,7 @@ const drawColumnChartHighcharts = function (
@@ -213,4 +188,4 @@ const drawColumnChartHighcharts = function (
@@ -213,4 +188,4 @@ const drawColumnChartHighcharts = function (
@@ -57,7 +57,7 @@ const calculateMinMaxValuesForHeatmapColorAxis = function (
@@ -57,7 +57,7 @@ const calculateMinMaxValuesForHeatmapColorAxis = function (
* @param {Array} formattedObsArrayForHeatmap Response from SensorThings API formatted for use in a heatmap
* @param {Object} extractedFormattedDatastreamProperties An object that contains arrays of formatted Datastream properties
@@ -177,6 +177,21 @@ const checkForAndDeleteUniqueObservationsFromLargerArray = function (
@@ -177,6 +177,21 @@ const checkForAndDeleteUniqueObservationsFromLargerArray = function (
* Convert a hexadecimal color code obtained from the Highcharts object (`Highcharts.getOptions().colors`) to its equivalent RGB color code
@@ -406,6 +421,7 @@ const removeTransparencyFromColor = function (rgbaColor) {
@@ -406,6 +421,7 @@ const removeTransparencyFromColor = function (rgbaColor) {
+ 6
- 33
@@ -7,30 +7,6 @@ import {
@@ -7,30 +7,6 @@ import {
* Format the response from SensorThings API to make it suitable for use in a line chart or column chart
* @param {Array} obsArray Array of observations (timestamp + value) that is response from SensorThings API
const timestampObs = new Date(result[0].slice(0, -1)).getTime(); // slice() removes trailing "Z" character in timestamp
* Concatenates metadata properties to create a string for either the title or subtitle of a line chart
* @param {Array} formattedObsArraysForLineChart An array of formatted observation array(s) from one or more datastreams
@@ -42,10 +18,10 @@ const createSeriesOptionsForLineChart = function (
@@ -42,10 +18,10 @@ const createSeriesOptionsForLineChart = function (
// Assumes that the observation array of arrays and building IDs + phenomenon names array are of equal length
@@ -62,7 +38,7 @@ const createSeriesOptionsForLineChart = function (
@@ -62,7 +38,7 @@ const createSeriesOptionsForLineChart = function (
@@ -71,7 +47,7 @@ const createSeriesOptionsForLineChart = function (
@@ -71,7 +47,7 @@ const createSeriesOptionsForLineChart = function (
* @param {Array} formattedObsArraysForLineChart An array made up of formatted observation array(s) suitable for use in a line chart
* @param {Object} extractedFormattedDatastreamPropertiesArr An object that contains arrays of formatted Datastream properties
@@ -171,7 +147,4 @@ const drawLineChartHighcharts = function (
@@ -171,7 +147,4 @@ const drawLineChartHighcharts = function (