add ellipsis when list is longer than maxlistlength
more faster in finding nearest value
do not traverse all elements when finding line tooltip list values