internal function to 'guess' correct number of colored bars in packed barchat using an elbow method
Useful links