fixing pie chart missing colors (#9732)

Backports PR #9719

**Commit 1:**
fixing pie chart missing colors

* Original sha: 66a23d3fab
* Authored by ppisljar <peter.pisljar@gmail.com> on 2017-01-04T14:31:58Z
This commit is contained in:
jasper 2017-01-05 04:28:56 -05:00 committed by Peter Pisljar
parent bc3fe77db7
commit 31821c1296

View file

@ -408,6 +408,9 @@ export default function DataFactory(Private) {
* @returns {Function} Performs lookup on string and returns hex color
*/
getColorFunc() {
if (this.type === 'slices') {
return this.getPieColorFunc();
}
const defaultColors = this.uiState.get('vis.defaultColors');
const overwriteColors = this.uiState.get('vis.colors');
const colors = defaultColors ? _.defaults({}, overwriteColors, defaultColors) : overwriteColors;