Refactor to remove line chart from iframe