add an if in setContainers. I check if legend is displayed, if not, the height remains the same.
removed comma at the last item of some objects