works with multiple charts
fixed bug in index.json.jbuilder