If you have many datapoints, you need to find another solution. I am myself using Highcharts but also other recommendations have been suggested. Anyway, Highcharts is fast and nice, you can read here how to use it in NR:
The exampe below is from my heatpump, I do not know exactly how many datapoints it is in there but it is not slow at all