I am beginner in Kibana and Elasticsearch.
When I try to use index with vegalite visualization, I am getting single bar with undefined CC_E field instead of showing colors w.r.t. CC_E(This is nominal field values are alphanumeric) and also I am not getting any EQP(This is alphanumeric field - Unique No. of values in this field are 7) on the x-axis.
Here is the code snippet.
{
"$schema": "https://vega.github.io/schema/vega-lite/v3.json",
"data":
{
"url": {
"%context%": true,
"index": "vizcheck"
},
},
"mark": "bar",
"encoding":
{
"x":
{
"field": "EQP",
"type": "nominal"
},
"y":
{
"field":"NoObj",
"aggregate": "count",
"type": "quantitative"
}
,
"color":
{
"field": "CC_E",
"type": "nominal"
}
}
}
I was looking for stacked bar graph. If any one can help I will be very thankful to you.
Main problem with earlier code was we need data to be formatted in the way bar graph needs. So first in the data group we are writing query to get the data and then using the same in below part of the code to draw the chart.
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.