Added a function to clear out the data and created a button for this action on the settings page
Fixed issues with charts and analysis for NULL data