I would like to add a legend while using the color by expression option. It appears that when "by expression" is selected the option to show a legend disappears. Might there be an extension for this?
have you checked Re: Colour by expression on single colours
Retrieving data ...