Allow variable number of charts