The problem still seems to be present. After triple click on legend and changing many traces visibility at once, the restyleData variable contains only one entry and information about most of traces visibility changes is lost. Any ideas about possible workarounds?