put pieces together for rCharts template