Fix frappe graphs rendering huge datasets and crashing