mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
fixing pie chart missing colors
This commit is contained in:
parent
886204ba3d
commit
66a23d3fab
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue