Skip to content

Allow specifying axis domain padding as pixel #1144

Closed

Description

Is your feature request related to a problem? Please describe.
Axis domain padding can be specified as percentage or total value related to the scale itself. However as this setting is often used for aesthetics, it would be useful to specify it as a pixel value.

Describe the solution you'd like
elastic-charts should take a setting like this:

{ padding:  '10px' }

Then it does the calculation of values to pixels and applies the appropriate padding

Describe alternatives you've considered
Theoretically the consumer could do this calculation, but it's cumbersome because the height of the chart has to be tracked to do so.

Additional context
This came up because the comment of the padding property actually specifies it can be a pixel value which is not the case

Checklist

Delete any items that are not applicable to this feature request.

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

enhancementNew feature or requestreleasedIssue released publicly

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions