Major fix to issues with graphs with completely invalid data