getNiceTickValues

Calculate the ticks of an interval. Ticks can appear outside the interval if it makes them more rounded and nice.

Return value

Array<number>

array of ticks

Props

  • __0NumberDomain

  • allowDecimalsbooleanoptional

    Allow the ticks to be decimals or not

    默认值:"true"

  • niceTicksMode"adaptive" | "auto" | "none" | "snap125"optional

    The algorithm to use for calculating nice ticks.

    默认值:"'auto'"

  • tickCountnumberoptional

    The count of ticks

    默认值:"6"