setting the charting layout