clicking on legend enabled