Add functional brewer

Add functional brewer and fix legend and trendline plugins to work with complex color values