Updates to display the chart in the main window - tracked down the stupidity in previous version