Skip to content

Commit

Permalink
Merge pull request #79 from Alex-NRCan/fix-data-nulls
Browse files Browse the repository at this point in the history
fix(nulls) - Schema validator now supporting nulls in y values
  • Loading branch information
jolevesq authored Sep 13, 2024
2 parents 9e0aece + 2d5b8f7 commit 62b1611
Show file tree
Hide file tree
Showing 4 changed files with 11,444 additions and 11,465 deletions.
55 changes: 55 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,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: {
Expand Down Expand Up @@ -754,6 +808,7 @@
<button onclick="importDataInputs(DATA_INPUT_3)">Import Data PIE</button>
<button onclick="importDataInputs(DATA_INPUT_4)">Import Data DOUGHNUT</button>
<button onclick="importDataInputs(DATA_INPUT_5)">Import Data BAR simple</button>
<button onclick="importDataInputs(DATA_INPUT_6)">Import Data w/ nulls</button>
</div>
<div>
<textarea id="CHARTDATAINPUTS" rows="18" style="width: 98%;"></textarea>
Expand Down
Loading

0 comments on commit 62b1611

Please sign in to comment.