Replace bar-chart x-labels for a legend in smaller screens