Hi Muhammad,
I checked the above code, looks fine.. but couldn't try it out.
Have you tried running the display templates (that you have passed in the constructor of i5Chart/i5Grid in your IRPT page) independently - by using "Test" button- does it work then.. ?
If the issue still persists for you then may be you can try adding one MII UI5 component (i5Grid or i5Chart) at a time and debug the same.
Thanks,
Ria