add layout for chart