add error segment to stacked bar chart, fix ids