change legend option