Reputation: 8107
I have text data in Elastic, field name is buildResult
, type is text
and value can be either Success
or Failure
:
I want to have Pie chart to illustrate Success
vs Failure
Could you please advice on chart setup or share some example for text
type?
Upvotes: 2
Views: 1509
Reputation: 1030
Split the piechart using text filters to get the result you want.
The picture below is taken from the data configuration of the piechart visualization in Kibana.
This works for string
fields - I guess it would work for text
fields also.
Upvotes: 3
Reputation: 329
From what i know the best way is to use keyword data type in these cases
when the field is keyword you can use simple terms aggregation to split the pie between the deferent keywords
Upvotes: 1