Hey @FinaSS!
If I'm understanding your requirements correctly, a post a made about dynamic line colors in plotly graphs may hold the answer you're looking for: