We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to the types, tick can be a RangeInterval which can be a number defining the tick interval.
tick
RangeInterval
a number (for number intervals), defining intervals at integer multiples of n
However, this conflicts with another type of tick which can be a number defining the tick amount.
number
From testing, it seems setting tick to a number is always interpreted as tick amount.
How can I set a numeric tick interval?
const data = [ {x: 0, y: 0}, {x: 1, y: 1}, {x: 2, y: 2}, {x: 3, y: 3}, {x: 4, y: 4}, {x: 5, y: 5}, ] Plot.plot({ x: { ticks: 1 }, marks: [ Plot.line(data, { x: "x", y: "y" }) ] })
Tick interval of 1, i.e. tick amount of 5.
1
5
Tick amount of 1, i.e. tick interval of 5.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
According to the types,
tick
can be aRangeInterval
which can be a number defining the tick interval.However, this conflicts with another type of
tick
which can be anumber
defining the tick amount.From testing, it seems setting
tick
to a number is always interpreted as tick amount.How can I set a numeric tick interval?
Steps To Reproduce
Expected Result
Tick interval of
1
, i.e. tick amount of5
.Actual Result
Tick amount of
1
, i.e. tick interval of5
.The text was updated successfully, but these errors were encountered: