Worked on ajax for line chart rotations