Search code examples
arrayssortinggoogle-sheetsgraphcharts

Sorting data on google sheets chart


I have unsorted data in the sheet and I would like to show a chart with sorted data.

Here is an example:

enter image description here


I would like the chart to be sorted ascending, by compensation.

How can this be done with the data being structured as on the picture?


Solution

  • move and sort your individual tables to Sheet2 with: =SORT(Sheet1!A3:B6,2,1)

    then construct your chart from there: