I have a few million documents in an ElasticSearch index with some numeric fields, say foo
and bar
. Is there any way to use Kibana 4 to create a graph with foo
values on the X axis and bar
values on the Y axis? Like a very, very basic chart one might create using Excel.
I'm fine with sampling/aggregations of some kind. I understand that these tools won't show me a plot with 20 million data points. I'm just trying to see if there's some obvious relationship between foo
and bar
by creating a graph.
Area Graph Go to visualization and choose area with index as countriesdata. We need to select the Y-axis and X-axis. We will plot area graph for max area for country wise.
A Scatter (XY) Plot has points that show the relationship between two sets of data. In this example, each dot shows one person's weight versus their height. (The data is plotted on the graph as "Cartesian (x,y) Coordinates")
To just plot the correlation between revenue and employee count I would just use a line chart like this:
In order to justify creating a scatter plot chart though (since they're awesome and I wanted to) I generated some fake data that looked something like this:
{
name: faker.company.companyName(),
employees: _.random(3, 30),
revenue: _.random(10000, 100000),
industry: _.sample(industries)
}
And plotted it in visualize by breaking it down piece-by-piece:
employees
fieldcompany
fieldindustry
fieldrevenue
fieldThis configuration is pretty complex, but the resulting visualization shows a lot of information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With