Skip to content

Axis domain optional min/max support #111

@sulemanof

Description

@sulemanof

Is your feature request related to a problem? Please describe.
There is no way to pass a domain prop to the Axis component as an empty object or an object with partial values (only max or only min value).

Describe the solution you'd like
I think it should support the next object structures:

  • const domain = { min: undefined || null, max: undefined || null} and pretty the same const domain = {} - in that case it should behave as without the domain prop;
  • const domain = { min: 10 } or const domain = { max: 10 } - support of partial domain values if a user wants to use only one of them

Additional context
In that case I would never think about if min or max is defined and it would simplify the development
image

  • I suppose the charts should show a message that user pass invalid max-min range instead of throwing an error which crash an app
    image
    image

Kibana Cross Issues
n/a

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

Labels

:axisAxis related issue:specsChart specifications related issueenhancementNew feature or requestreleasedIssue 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