Skip to content

[Metric] Improve title/subtitle/extra visibility breakpoint based on fit font size #2554

Open

Description

Based on this discussion #2548 (comment)
We probably could improve the elementVisibility breakpoits based on the new default calculations.
Currently we do the following:

  • first we compute the heightBasedFontSizes and the element visibility for title/subtitle/extra/value based only on height (with getMetricTextPartDimensions)
  • then we compute the fit fontsize for the value (with getFitValueFontSize)
  • and then we update the calculated value font size based on the desired configuration (fit, default/snap)

We can probably change this to compute the element visibility after that to increase the visibility of more text as possible

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

Metadata

Assignees

No one assigned

    Labels

    :metricRelated to Metric chartenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions