Fix for issue #250 ordinal bar chart does not render when first two bars are empty

Change to flattenStack() function, to use first and last value of domain instead of assuming that domain array only contains two items.

See issue #250