Correctly marginalize the line chart as well