chart to table functionality