add pagination method for chart data