Legend now accepts auto as a value for itemWidth and distributes elements according to their width if the legend is horizontal