merge chart to tempalte