Update single property of Graph

I’m trying to only change the color of my scatter plot with the callback. I only managed to change it reloading the data each time. The problem is that I don’t think this might be very efficient. Furthermore, this resets my graph and I would like the view to remain the same to study some local properties.
Do you guys know how could I only change the color attribute without applying the callback on the whole graph data?
Thank you!