convert json to csv in scatter plot panel