Need Help to understand more deeply plotly; Scatter Color Input

HI @adwge , I did not understand what you are trying to achieve and the code you posted is not the best to understand

Maybe you could try to create a MRE?