Skip to content

Commit

Permalink
fixing display of line parts when there is no data value
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed May 16, 2024
1 parent e9094be commit 4df1b4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/dialog/observation-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ function csvToJSON(csvData) {
// remove the timezone from the time value
ret_val.map(function (e){
e.time = e.time.substring(0, e.time.split(':', 2).join(':').length);

// data that is missing a value will not result in plotting
if (e["APS Nowcast"])
e["APS Nowcast"] = +parseFloat(e["APS Nowcast"]).toFixed(4);
else
Expand Down

0 comments on commit 4df1b4b

Please sign in to comment.