I am migrating visualizations and dashboards from kibana 5 to 7
In Kibana7 line graphs aggregating Average with an X-Axis of Terms sorted by Sum (in our case we have a metric that is about time/power it took for this task to complete), the lines break if X-axis does not have a data point resulting in poor display. In Kibana5 lines connect skipping missing points and join to the next available data point making a cohesive usable linegraph.
I can reproduce with a line graph swapping in many different fields (or line on a bar graph):
- Metrics > Y-axis > Aggregate 'Average' > Field (anything)
- Buckets > X-axis > Aggregate 'Terms' > Field (anything) > Order: Custom Metric > (Sum of a field) > Size: (large enough to give enough results for X)
Seems to only be an issue for aggregating by average.
This is causing issues in multiple user visualizations and dashboards. Any ideas to solve it? Maybe a hidden toggle to make it act like kibana 5?
Here is an example with kibana 5 at the top, 7 at the bottom
what version of Kibana 7 are you using?
I've checked on a 7.16 instance and the line has an automatic fit with a dashed representation:
It looks like we are currently on Version 7.10.1
Hopefully it is just a bug that has been patched then if it is working for you in 7.16. Is there any way you could roll that test back to 7.10.1? I am unsure if we can update quite yet, but it would be great to have confirmation that I'm not crazy
Thanks for the response!
Actually, we were able to upgrade the test environment to 7.17. Yes this solves the issue! With the strange caveat that I have to rebuild the whole visualization, for some reason the existing viz adds those weird pointy downwards lines and no connecting dots still.
Top pic is problem viz reopened under 7.17, bottom is viz rebuilt under 7.17.
No problem though, it's still a solution!
Thank you for the help!
Hi again Marco,
Flagging that this bug persists when selecting to make a visualization under type "bar" (which is how these were originally made in kibana5) and using a line view for an aggregation. It does however work if I rebuild the same graph under the "line" type visualization.
Top example is bar graph, bottom example is line graph. Same data and aggregations.
I will rebuild all these graphs under the "line" type, but I just wanted to flag the bug.
I've managed to reproduce the issue and logged it here: [Visualize] Line fitting function does not work if Line is not the first metric defined · Issue #126598 · elastic/kibana · GitHub
I've found a workaround for it which can prevent you to duplicate all the charts: if you reorder the metrics putting the line chart as first metric then the fitting function will work fine. Hope it helps.
Oh excellent, thanks for your help!
The confusion was because the comparison tests I created were done using line option, and the bug was present for 7.10 but fixed in 7.14 update. I did not realise the graphs I was migrating had used the bar option. It's a hard to tell what type is being used once inside the vis, aside from the icon in the listing page.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.