Fix issue 176, which involved duplicated x-values in stacked graphs