Kibana: Show decimals in Timelion legends

Created on 24 Mar 2018  Â·  10Comments  Â·  Source: elastic/kibana

I have a Timelion sheet with an avg over an integer with numbers in the single or double digits, right axis, yellow line.

There is clearly a progression from 10 to 11 to 12 with multiple steps in between. Ideally this would lead to decimals in the legend. However, the legend is showing 10, 11, 12 without decimals.

screen shot 2018-03-24 at 13 20 38

Timelion KibanaApp bug

Most helpful comment

You probably want to use something like .yaxis(tickDecimals=2). Note that despite being a parameter of yaxis, it seems to affect the legend, too (at least as of Kibana 7.7).

(This seems not to be well documented right now.)

All 10 comments

I seem to have a similar/related issue. I posted it in the kibana forum and was advised to report it as a bug, but this issue seems close enough. Anyway:
In timelion, the values printed on the graph label are somehow a rounding of the values on the chart. In the next chart, ALL values in the plateau between 18:20:00 and 18:40:00 show up as either 3 or 4, even though in the graph it's clear they float around.
IMG_2
If I then zoom-in into that region, I get the decimals (The image doesn't show them because, well, I didn't select a point but believe me, they show correctly).
IMG_3
Is there a way to control the number of decimals printed on the label irrespective of the y-axis scale? Or is this really a bug?
Best regards,
Carlos

Looks like the same thing indeed. Can you please tell us your exact version @camjesus2 ?

I'm running kibana 6.6.2

It seems as though the number of decimals in the label is tied (meaning, they are the same as) to the number of decimals in the y-axis. If we could change the number of decimals in the y-axis, that could be a workaround.

What is the prefered way to change the decimal place on the Y Axis to implement @camjesus2 workaround

I'm facing the issue on 7.6.1 version, is there any way around it?

@timroes any workaround or input about this issue?

You probably want to use something like .yaxis(tickDecimals=2). Note that despite being a parameter of yaxis, it seems to affect the legend, too (at least as of Kibana 7.7).

(This seems not to be well documented right now.)

I can confirm that @rudolfwalter suggestion works as of at least 7.5 (last
time I've checked).

Instead of number of decimals, it would be nicer to define the number of
significant digits. Its not he same to have 1.22 and 10000.22 and for
dynamic charts this can be an issue.
But now I'm just being picky....
Best regards

rudolfwalter notifications@github.com escreveu no dia sexta, 22/05/2020
à(s) 07:45:

You probably want to use something like .yaxis(tickDecimals=2). Note that
despite being a parameter of yaxis, it seems to affect the legend, too
(at least as of Kibana 7.7).

(This seems not to be well documented right now.)

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/elastic/kibana/issues/17379#issuecomment-632519966,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALTE2Z2U5HXGOLSMPMMSUK3RSYNPXANCNFSM4EXG33RQ
.

.yaxis(tickDecimals=2)

Yeah!! adding .yaxis(tickDecimals=2) worked for me.
Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MaartenUreel picture MaartenUreel  Â·  3Comments

timroes picture timroes  Â·  3Comments

spalger picture spalger  Â·  3Comments

stacey-gammon picture stacey-gammon  Â·  3Comments

stacey-gammon picture stacey-gammon  Â·  3Comments