Graphs with different line colors

im using aspose.excel to create a single line graph in excel. is there anyway to change the color of that line throughout the graph? for example, if the graph is a single line representing time vs. temperature, can i make part of the line within this hour be green, and part of the line in the next hour be red, etc, without generating more than one chart and keeping that one same line? if so, generally, how can i do this? thanks.

james