esnet / esnet/react-timeseries-charts

YAxis tickCount not working as expected

Open
#175 23 comments 0 reactions 0 assignees View on GitHub
:octocat: help wanted :spider: bug
Dominant language
JavaScript
Stars
876
Forks
279
PR merge metrics
No merged PRs in 30d

Description

Hi, I found that when I change YAxis `tickCount` prop it works improperly. Here is a line chart with a brush.

Here `tickCount` is not set for both chart and brush
![image](https://user-images.githubusercontent.com/10725007/28873532-c879f7c4-7796-11e7-83e0-5196826814bf.png)

Here `tickCount` is set to 5 for both charts
![image](https://user-images.githubusercontent.com/10725007/28873707-714d227c-7797-11e7-8c73-25c5f60167ac.png)

Here `tickCount` is set to 2 for both charts
![image](https://user-images.githubusercontent.com/10725007/28873747-93de746c-7797-11e7-9959-3d982246edb9.png)

As you can see it works weirdly for both charts. For the bottom one, it distributes ticks unevenly. I expected the only two ticks to be at the top and the bottom most parts of the scale. For the top one, it just doesn't make any sence.

I am using the latest version `0.12.8`
Here is the component's [source code](https://pastebin.com/Js5zhzVj)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.