How to get charts with prior minutes data. Iam getting chart from current minute only

you can use time frame of number of historical days as per your requirement