Yes, grad fills are the way to do this and you can drag two yellow colours onto the graduation line to get the flat yellow section in the middle.

Phil