Change graph label behavior based on number of bars