Chart title and legend

Is there a way to set a chart's title and legend text to the value of a global or a property?

Rather than using a static value, have the value change based on the user's selection or data values.

I would like to use something like 'Data for ' + @SelectedLocation