Hi,
Unfortunately - we don't have a possible way of doing this on line charts right now.
You can do it on metric visualization. But I am not sure if that serves what you are looking for: Conditional color change in Metric Widget
Or you can use timelion: https://www.elastic.co/guide/en/kibana/current/timelion-customize.html
Thanks,
Bhavya