One thing left do to

Reorder the contentStoreView
Remove < and > from doc labels
request 500 items by default from the ECS
Throw exception when ECS search yield no results.
Convert simple iterations to for loops
Make sure labels are passed in
Sort the result graph based on (Positive) classification score.

Highest score first.
More detailed exception message.
Determine the correct HypCat and Prob keys from response.