fixes #18: dynamically create error div when graph error needs to be shown.