You can give a Trend user the ability to make the Legend visible or invisible with the SetLegendState method.
SetLegendState
More information
Configure Methods.
About Trend methods.