For testability it seems like this method should be returning the array of axes instead of mutating the chart configuration directly.