mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
#6537 add simple check to enable coloring in viz (data table), too
This commit is contained in:
parent
a4bf798e29
commit
e67f6ebf5c
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,7 @@ export default function ColorFormatProvider(Private) {
|
|||
html(val, field) {
|
||||
|
||||
var color;
|
||||
if (field.type === 'string') {
|
||||
if (field.type === 'string' || field === 'string') {
|
||||
color = _.findLast(this.param('colors'), (colorParam) => {
|
||||
return new RegExp(colorParam.regex).test(val);
|
||||
});
|
||||
|
@ -67,5 +67,6 @@ export default function ColorFormatProvider(Private) {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
return _Color;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue