Skip to content

Add nice option for axis ticks #397

@nickofthyme

Description

@nickofthyme

Is your feature request related to a problem? Please describe.
Allow user to set the option for nice tick ending values.

Describe alternatives you've considered
User manually sets the domain based on dataset

Additional context
An attempt was made in #384 but ran into issues with ticks aligning to the geometry domain.

See this branch for attempt master...nickofthyme:feat/nice-ticks

computeSeriesDomains computes the xDomain and yDomains which are then passed to all subsequent function. I think this would be the best place to set the nice value so the domain is set from the beginning.

Better yet is this could return the xScale and yScales that would be better so the scale is not instantiated in the getAxisTicksPositions and then in getScaleForAxisSpec

Metadata

Metadata

Assignees

Labels

:axisAxis 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