update linechart xAix count
modify margin of pieChart