Fix for linear regression not updating in "Analysis view". Had to do with unresolved issue when trying to update the callback function on a svg element.