split ret array to 2-dim array
use nested ng-repeat
use new color mapping