Hi Stefan,
One possible solution to this would be to use 2 different queries - 1 with a TOP N condition, and 1 with a BOTTOM N. Depending on the selection of the user, you could load the appropriate query into the Data Source being used on the chart.
I hope this helps.
Thanks and Regards,
Eshwar