The code updates the database properly but does not show the change in the table until the page is refreshed. (favorite is determined from a resource_user pivot table)
How can I enable the default ChartJS functionality when multiple datasets are added? I would like each dataset to be a different color without specifying it.