combine two modes in a single line (Line graph Any chart Widget)

Hi People,   How to combine two modes (lines and dotted style) in a single series of graph. for example as shown in graph below, Till 2, its should be lines, after 2 its dotted. I am using plotly chart widget(Any chart widget).  How to combine both modes in graph I am able to build lines, want to combine dotted lines with lines. Anyone has idea how to do it?
1 answers

Have you tried splitting the 'line' into two separate series?  One with the values up until '2' and one with the values thereafter?  Then you could simply style the second series as dotted/dashdot.