Reputation: 79
I've to build a concentration curve with data set ranging from (0,100) ,including fractional values and have to display only natural numbers on axes. how can it be done?
Upvotes: 1
Views: 2805
Reputation: 151
Try this prop on both the x and y axes' components:
<XAxis
allowDecimals={false}
/>
Upvotes: 7