create template for charts