hydrograph code formatting and loading indicator