resize chart based on the number of queries