I also tried to create a histogram with binned data based on this one. But I'm not sure how to use data I have, cause I need first count the number of devices each user use and then group users based on that aggregated data. Are there any options to make it? Thanks!
I can help debug your Vega spec and ES queries. The first thing I notice is that you have index: "/events-*" instead of index: event-*. Secondly, it might help if you showed the rest of the Vega spec in your encoding section.
When it's empty like that, Vega is matching no results with the field names you're using. Maybe the issue is that you've written eventCount\\.value instead of eventCount.value for the X axis?
Let's make sure that you are getting results from your query first. In your Vega visualization, can you open the browser dev tools and type VEGA_DEBUG.vegalite_spec? This will show the results of your Elasticsearch query as the data, and this lets you copy it into the online vega editor.
If you're willing to share the spec with realistic-looking data, then I can test it out and help you find the problem.
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.