enhance typeof legend container

Added possibility to have CSS selectors in legend container options