Skip to content

[Gauge, Goal] [Split Group] the label is not displayed for field types other than "number". #84764

Description

@alexwizp

Kibana version:
master, 7.9??, 7.10

Describe the bug:
[Gauge, Goal] [Split Group] the label is not displayed for field types other than "number".

Steps to reproduce:

  1. Install a sample data and create a new Gauge visualization
  2. Add new Metric
    image
  3. Add new Bucket: aggregation: Terms, field type: Date
    image

Expected behavior:
I expect to see serialized value for label. Visualization cannot be used in its current view
image

For numbers it looks like:
image

Horizontal bar visualization draws labels in a better way for the same configuration:
image

Activity

  1. added
    Team:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//
    on Dec 2, 2020
  2. elasticmachine commented on Dec 2, 2020

    @elasticmachine
    Contributor

    Pinging @elastic/kibana-app (Team:KibanaApp)

  3. added
    Feature:VisualizationsGeneric visualization features (in case no more specific feature label is available)
    on Dec 2, 2020
  4. changed the title [-][Gauge] [Split Group] the label is not displayed for field types other than "number".[/-] [+][Gauge, Goal] [Split Group] the label is not displayed for field types other than "number".[/+] on Dec 2, 2020
  5. alexwizp commented on Dec 2, 2020

    @alexwizp
    ContributorAuthor

    Looks like we hide that labels if chart item has small size. I agree with this behavior for a single chart element, but it's pointless for split data.

    Screen Recording 2020-12-02 at 5 22 35 PM

    @timroes @stratoula any ideas?

  6. stratoula commented on Dec 3, 2020

    @stratoula
    Contributor

    Well yes I agree this visualization without any label can't be very helpful for the user. It happens on small screens though.

    Screenshot 2020-12-03 at 11 12 47 AM

    We could possibly make the labels text size responsive instead of hiding them but I would love the feedback from the design team. @miukimiu what do you think about it?

  7. elasticmachine commented on Dec 10, 2020

    @elasticmachine
    Contributor

    Pinging @elastic/datavis (Feature:ElasticCharts)

  8. timroes commented on Dec 10, 2020

    @timroes
    Contributor

    cc @markov00 Since I don't think we should address that anymore in the vislib implementation and instead make sure Elastic Charts is behaving exactly the way we would want this to behave.

  9. markov00 commented on Dec 14, 2020

    @markov00
    Contributor

    @timroes the current implementation (that was released in @Alpha at the beginning of this year) actually scales the font depending on the chart size.

  10. timroes commented on Dec 14, 2020

    @timroes
    Contributor

    I'd close this issue then in favor of #56143, since I don't think we want to address that in the vislib implementation before switching over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Feature:ElasticChartsIssues related to the elastic-charts libraryFeature:Gauge VisGauge and goal visualizationFeature:VisualizationsGeneric visualization features (in case no more specific feature label is available)Team:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions