Skip to content

Control tick count on YAxis #150

@alcuadrado

Description

@alcuadrado

Is it possible to display integer-only ticks in an YAxis? I tried using the format property, but it didn't work.

Here's my code for it:

<YAxis
  id="axisDonors"
  label="Investors"
  style={axisStyle}
  min={0}
  max={maxDonors}
  format="d"
  width="60"
  type="linear"
/>

Here's an example of what I'm getting (see the YAxis on the left):

image

I'd like to have only 2 ticks: 1 and 2.

Is it possible?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions