bugfixes (especially on using functions for color)

I still need to implement different gaps for between series and between
groups on bar charts