Question regarding a plot

Hi,
I want to plot a line in which the colour will change based on another metric called risk (see image attached). Is that possible using Plotly?

Hi @DrTheo
:wave: Welcome to the community. Unfortunately, this is not possible yet in Plotly. A feature request about this was opened on our repo.