Hi @wylie, thank you so much for the quick help and the instructions. Just to be more precise, I want to do faceting to make what is called small multiples/trellis chart. Here is my gist:
Here is my Vega-lite code in Kibana. I already tried changing the property field and tried wrapping code in a spec tag, and declaring the row field inside encoding. I commented this parts in the code, as I am not sure what to do.
Your facet was using the wrong name. The JSON response contains key, not iName.keyword.
Your encoding contains the wrong level of keys. Once you transform the results, you need to encode the inner level like flattened_name.key and flattened_name.doc_count
Thank you so much @wylie, it is working. But I can't manage to size my small multiples.
I was able to split by row and columns, but it is so big that the plots don't fit in a dashboard. Tried this below, but no success:
@wylie thanks again for the help.
I'm unable to find how to declare spec property (although it was commented in my code, I didn't use). It returns me "Invalid specification".
I'm using vega-lite schema, is it possible? Or spec is just for vega schema?
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.