Want to skip to the implementation? Check out these examples:
The API below described how to use the custom-steps features.
steps: Array<number>
steps: Array<number>
An array of custom steps to use. This will override stepSize
ticks: Array<number>
ticks: Array<number>
An array of custom ticks to use. This will override tickSize
getTicks: () => ReadonlyArray<{value: number; key: number; percentage: number}>
getTicks: () => ReadonlyArray<{value: number; key: number; percentage: number}>
Ticks to be rendered. Each tick has the following props:
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.