return JSON from chart_index, chart updated from JSON values