UI Chart dynamic topic display

In my thermostat application I would like to display the temperature chart for each room.

Using different topics for each room I could display all the rooms on the same chart.

But is it possible to dynamically select the topic (room) to display (i.e. to hide the other topics) on that chart ?

If you display the legend - you can click on the legend items to turn them on and off

Thanks, that is good to know but I was wondering if is possible to select it dynamically from a node control?