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

    DEFAULT: "true"

  • tickCountnumberoptional

    The count of ticks

    DEFAULT: "6"