Add query from stringquery to the histogram and his labels

Add query from stringquery to the histogram and his labels
Labels needed ?