legend now has inline styles where necessary