Skip to content

[Lens] Bytes formatting needs to be consistent across the Y-axis values #57384

@cchaos

Description

@cchaos

Should the lower values of Bytes be decimals of the largest value? For example the Y axis in this:
image

would instead be 0.9KB, 0.5KB etc...


We might want some granularity control over what is visible as the axis labels versus what we can see in the tooltip. Ex:

Screen Shot 2020-02-10 at 14 40 16 PM

I'd like to ensure the x-axis labels are marked at the whole values, but see the decimals places in the tooltip.


Okay, both 2 and 3 are related to the same overall issue, which is that our formatters don't have any context. It's especially noticeable because the bytes formatter scales itself between orders of magnitude, but affects dates as well. For example: #7539 #51227

I don't expect to solve these issues in this PR, as it's something the bytes formatter has across Kibana. Feel free to open an issue to discuss the problem of bytes formatting on the Y axis.

Originally posted by @wylieconlon in #56253 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:FieldFormattersTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//discussenhancementNew value added to drive a business resultimpact:mediumAddressing this issue will have a medium level of impact on the quality/strength of our product.loe:smallSmall Level of Effort

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions