mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
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:
parent
bc3fe77db7
commit
31821c1296
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