Show only selected graph lines

Hi, I would like to allow my users to (multi-)select which lines they would like to see appear in a same graph. What is the best way to do that i Workshop?

Could you use a filter list widget to let the user select only the property values that correspond to the different series you want to display? If the lines are across different layers and object sets, then you might need multiple filter list widgets.

The lines are across different object sets. A filter widget allows me to filter within a certain property of an object, I’d rather like to show or not show the objects altogether. Does that mean I need to add a constant column to all my objects “to_show: Yes” ? So the filter property is to_show → but then I would only have the Yes option. So it implies I’d need to use a string selector instead of a filter widget, with yes / no options, and have all my objects definition be filtered on the selected string of yes/no.

(1) Do you think this works? (2) is there a simpler way to do so?

Note also ideal solution desired is to have 1 string selector where I can multi-select the names of my lines (/object types)

In that case, could you use a variable transformation with an if/else statement to return an object set with either (a) the objects you want to plot, or (b) no objects? Then you could rig up a toggle that would turn “off” lines on the chart by switching between an empty or non-empty object set for whichever object type you care about.