OpenWaterFoundation / owf-app-infomapper-ng

Open Water Foundation InfoMapper web application for menu-driven maps and visualizations, using Angular
GNU General Public License v3.0
1 stars 2 forks source link

Time series graph should handle data gap #291

Open smalers opened 3 years ago

smalers commented 3 years ago

Time series that have missing data gaps should be drawn in a way that does not connect lines across data gaps. For regular interval time series, each interval in the time series either has a value, or missing value indicator, such as null, NaN, etc. Therefore, graphing tools should be able to detect a gap and not draw a line across. If there will be many missing values, then using a point graph should be done because a line across a single point may not be visible.

For irregular interval time series, there is no interval that can be used to indicate missing. Therefore, it is necessary to supply a "gap" property that limits the time over which points can be connected with lines. Plotly has such as feature. Currently, TSTool does recognize such a graph property, but this needs to be implemented for irregular time series. For now, don't do anything in InfoMapper (allow line to draw over gap) since InfoMapper is focusing on regular interval time series. I will add functionality to TSTool for the gap and then the graph configuration will have a property. We can test in the future when implemented. We are doing similar work at TriLynx for real-time data.