How can I get the last 5 items (from 15) of a bar plot in palantir foundry workshop?

Lets say I have 15 items in my bar plot. If I sort it, and I want the last 5 items, how can I do this? (so instead the first 5, the last 5)

Question originally asked by Pithit on Stack Overflow: how can I get the last 5 items (from 15) of a bar plot in palantir foundry workshop? - Stack Overflow

To limit the display to just 5 items, you can set that in the config panel for the relevant plot layer. plot layer config panel

Then, to display the first 5 or last 5 items, change the sort order in the config panel for the chart widget – pick either Value Ascending or Value Descending depending on which gives you the result you’re after. chart widget config panel

Answer originally provided by Ontologize on Stack Overflow: how can I get the last 5 items (from 15) of a bar plot in palantir foundry workshop? - Stack Overflow