Hi Partheeban,
The screenshot of the chart that you have shown is using iChart, did you try the same using i5Chart?
LineChart using iChart works fine for me, it could probably be due to some configuration or data.
If possible please share the data that you are passing to the chart and then we can try the same with iChart and i5Chart.
Regarding the SQL query template I donot have much idea, will have to try something out.
Thanks,
Ria