I want to define or control the length of data which coming from api. for example I have 50 data set for ploting in the chart but i want to define that only 30 data set wil