fixed errors adding data points to the data visualisation