swap piechart and linechart