If you have a fixed start and stop color: Green > Red
if graph reached the highest number the color turns to the start color.
I presumed the color goes from green(0%) - orange(50%) - red(100%)
please add 'middle-color' option for better control or steps data color option
fiddle here:
https://jsfiddle.net/ptykooqs/