Graph: Fix for series draw order not being the same after hiding/unhiding series, Fixes #847