saved data to respective variables from search query of type chart