panelutil: add displayError() function to display errors before chart