Skip to content

Auto min value on log scale #916

@nickofthyme

Description

@nickofthyme

Is your feature request related to a problem? Please describe.
When using a log scale the min value is hard coded to 1.

export const LOG_MIN_ABS_DOMAIN = 1;

This causes issues in charts with a dataset with values less than 1 causing the values to not be shown.

image

https://codesandbox.io/s/happy-fog-pkd1j?file=/src/App.tsx

Describe the solution you'd like
EC should detect the min value from the data. Also, allow users to set the min log value via settings.

Describe alternatives you've considered
Setting explicit min domain value.

Kibana Cross Issues
elastic/kibana#83917

Checklist

  • this request is checked against already exist requests
  • every related Kibana issue is listed under Kibana Cross Issues list
  • kibana cross issue tag is associated to the issue if any kibana cross issue is present

Metadata

Metadata

Assignees

No one assigned

    Labels

    :axisAxis related issueenhancementNew feature or requestkibana cross issueHas a Kibana issue counterpartreleasedIssue released publicly

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions