I am trying to understand how to visualize data on a map using Vega Plugin.
I have a index called test with document containing location as a geo_point type which I would like to visualize on a map:
Not fully yet. I am still trying to figure out how to create configuration when the popup will show on user action on point.
Some example would be very helpfull. I can learn on that what and how can be used in Vega. Would you be able to demonstrate it on the example of custom map from Vega Github?:
@romanc The very simple path is to add "tooltip" field for the "enter" section of the symbol mark (or whichever mark should have a toolip). See docs. The more appropriate (but fairly complex) example is logstash-geosrc-map-with-destinations.hjson - to use it, first generate some dummy data using makelogs (not on production cluster!). That graph creates a "hover" signal when the user mouse is over the countrymark symbol (signal is equal to the data object for that symbol), or becomes null on mouseout. There is also a group mark (line 137) that draws a rectangle with a pie chart for the currently selected item. The drawing is fairly involved because it needs to access sub-aggregation for the current country, take only the first N elements and group the rest, etc, but this is not relevant for this question. You would probably want to modify the signal to become activated on click rather than mouse over. Good luck!
@nyuriks Thank you very much, this was very helpful. Tooltips and Hrefs works like expected and Group marks are very good way to show a custom rectangle with specific data and other visualizations :}
I have two questions:
what you mean by
You would probably want to modify the signal to become activated on click rather than mouse over.
it means modifying Vega plugin or to create custom signal configuration inside visualization for click?
Is it possible to somehow create user input text area where user will input comment and it will be indexed in current document in elasticsearch? Is it possible with Vega? I am not aware of such functionality in Kibana itself, but would like to have it.
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.