Changed chart from popup to a panel