From 7f54a7b70898b91054397f5563830284ba95f32a Mon Sep 17 00:00:00 2001 From: jolevesq Date: Fri, 13 Sep 2024 15:16:11 +0000 Subject: [PATCH] Build: (62b1611) Merge pull request #79 from Alex-NRCan/fix-data-nulls fix(nulls) - Schema validator now supporting nulls in y values --- index.html | 56 +- main.js | 3027 +++++++++++++++++++++------------------------------- 2 files changed, 1269 insertions(+), 1814 deletions(-) diff --git a/index.html b/index.html index 08c8afb..5b503bb 100644 --- a/index.html +++ b/index.html @@ -611,6 +611,60 @@ }] }; + const DATA_INPUT_6 = { + "chart": "line", + "title": "Line Chart with time on x and sliders", + "query": { + "type": "esriRegular", + "url": "https://services1.arcgis.com/HsjBaDykC1mjhXz9/ArcGIS/rest/services/CRMN___Tritium_in_Atmospheric_Water_Vapour_WFL1/FeatureServer/3", + "queryOptions": { + "whereClauses": [ + { + "field": "Station", + "prefix": "'", + "valueFrom": "Station", + "suffix": "'" + } + ], + "orderByField": "Date" + } + }, + "geochart": { + "xAxis": { + "type": "time", + "property": "Date", + "label": "Collected date" + }, + "yAxis": { + "type": "linear", + "property": "Activity_Activite_Bqm3", + "label": "Activity (mBqm3)", + "tooltipSuffix": "mBqm3" + }, + "borderWidth": 1 + }, + "ui": { + "xSlider": { + "display": true + }, + "ySlider": { + "display": true + }, + "stepsSwitcher": true, + "resetStates": true, + "description": "This is an ArcGIS Online layer chart", + "download": true + }, + "datasources": [ + { + "display": "GE7", + "sourceItem": { + "Station": "GE7" + } + } + ] + }; + const OPTIONS_NATIVE_1 = { responsive: true, plugins: { @@ -707,7 +761,7 @@ datasets: [{ data: [{"x": 10, "y": 15}, {"x": 15, "y": 25}, {"x": 20, "y": 10}] }] - };
GEOCHART INPUTS (these parameters will be parsed and sent to the Chart.js props on the right and GeoChart created below)
Language:

CHART.JS PROPS (these Chart.js native parameters are used to draw the actual chart itself)
GEOCHART INPUTS (these parameters will be parsed and sent to the Chart.js props on the right and GeoChart created below)
Language:

CHART.JS PROPS (these Chart.js native parameters are used to draw the actual chart itself)