How do i plot a linear, best-fit line graph to calculate correlation?

How do i plot a linear, best-fit line graph to calculate correlation between X and Y? can we do regression, etc on kibana? the graph function is not numerical right?

I'm not aware of any built-in way to do this within the main Kibana functions, including Visualize, Timelion, TSVB. You might be able to do this with a Vega visualization, which gives you a lot more control over the post-processing and lets you run Elasticsearch DSL queries. However, I can't find any examples of doing a line of best fit using Vega. You might also be able to find a Kibana plugin that extends our built in capabilities with something custom.

thanks! do you know where i can activate Vega?

Vega is available in Kibana 6.2 onwards. This is a blog post that includes a lot more examples of how to get started: https://www.elastic.co/blog/getting-started-with-vega-visualizations-in-kibana

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.