internal function to 'guess' correct number of colored bars in packed barchat using an elbow method
guess_bar_count(x, min_bar = 3, max_bar = 25)