adds legend
query selected datasets and visualize them