add the feature to plot multiple fields in histogram, and to pair each plot to a set of queries