This can just be: `var chart, chart<%= index %>;`.