Once you create a line graph, Drop the profit over the color shelf.
Now Right click on the profit column and add quick calculation as difference.
Now the graph would change as below,
Click on the color legend on the right and edit color as red-green to get red-green color in the line graph.
Hope it helps!.