Skip to content

Conversation

@Fil
Copy link
Contributor

@Fil Fil commented Dec 17, 2021

(unifies ramp and swatches)

this is equivalent to setting 0 ticks; an alternative could be to set tickFormat to () => "". I have no preference on the matter.

@Fil Fil requested a review from mbostock December 17, 2021 22:56
@mbostock
Copy link
Member

Hmm, not sure I agree. Maybe you just want to draw the tick marks without the labels? If you want to suppress the ticks I would say that ticks: null is more semantic than tickFormat: null.

@Fil
Copy link
Contributor Author

Fil commented Dec 18, 2021

PR switched to () => null; the idea is to have a similar behavior between ramp and swatches when using the tickFormat: null option.

@mbostock mbostock merged commit 1760910 into main Jan 7, 2022
@mbostock mbostock deleted the fil/ramp-tickformat-null branch January 7, 2022 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants