quickfix on event chart: order of g adjusted with moveToFront() so onClick on each event rect works