Unfortunately, that data format is a nested datatype, which isn't supported in Kibana right now.
Regardless, since Kibana uses aggregations to visualize data, you will have to store the data as separate documents, such as:
POST /stackedtest/doc
{
"feature": "A",
"response": "Yes",
"count": 19
}
POST /stackedtest/doc
{
"feature": "A",
"response": "No",
"count": 0
}
POST /stackedtest/doc
{
"feature": "A",
"response": "Maybe",
"count": 81
}
POST /stackedtest/doc
{
"feature": "B",
"response": "Yes",
"count": 0
}
POST /stackedtest/doc
{
"feature": "B",
"response": "No",
"count": 0
}
POST /stackedtest/doc
{
"feature": "B",
"response": "Maybe",
"count": 100
}
POST /stackedtest/doc
{
"feature": "C",
"response": "Yes",
"count": 10
}
POST /stackedtest/doc
{
"feature": "C",
"response": "No",
"count": 32
}
POST /stackedtest/doc
{
"feature": "C",
"response": "Maybe",
"count": 58
}
Then you can build a stacked bar where the X-Axis is a filters aggregation, the Y-Axis is split using a terms aggregation of the response, and the Y-Axis metric is a max of the response count for the term:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.