Graph: fixed issue with shared tooltip when one or more series is hidden, Fixes #1094