Partial code for stacked graph