I’m not at all familiar with Twine, but the code between <<print and >> looks like JavaScript. Is that right?
If so and if $HighScoreChart is an array, you can call .slice(0, 10) before the .map to just get the first 10 entries. There’s no way to stop looping from inside map (except throwing an exception, I guess).
If it’s not JavaScript, you’ll probably still need something like that - just with potentially different syntax.
note: this relies on the previously mentioned <array>.slice() method to create a temporary copy of the original array that has a maximum of 10 elements.