improvement: improvement of algo for categorize bargraph. Clean of code