adding line chart to eg rect