Color per chart + legend + the best result calculation fix.