Can we color the line according to the values, I have shown in .png the threshold and colors for different values but my line colour or point color didn’t change
Yes, this is possible:
Change Color scheme to From thresholds (by value) and Gradient mode to Scheme
This is decribed in the documentation