How can I make my graphic more readable?

Hello, I have connected my data to a table with an api and I am trying to create a chart over the table data. But since there are many options with low values, I guess they are not very readable.

My priority is to show the 5 options with the most values, but I couldn't do it with js code.

1 Like

Try this for your data source: {{query1.data.payload.map(item => item.user.profile).sort((a, b) => b - a).slice(0, 5)}}

2 Likes

@barnoloji Hope you're all set! Let us know if you're still looking into a solution :slightly_smiling_face: