Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Short time domain on long axis causes repeated year labels #20

Open
jheeffer opened this issue May 19, 2018 · 0 comments
Open

Short time domain on long axis causes repeated year labels #20

jheeffer opened this issue May 19, 2018 · 0 comments

Comments

@jheeffer
Copy link
Contributor

jheeffer commented May 19, 2018

When you have a short time domain (e.g. 2000-2005) on more labels than 6 fix on the axis, year labels will start repeating.

https://www.gapminder.org/tools/#_state_time_value=2000&startOrigin=2000&endOrigin=2005;&marker_axis/_x_zoomedMin=2000&zoomedMax=2005;&axis/_y_which=hdi/_human/_development/_index&scaleType=linear;;;&data_/_lastModified:1526715728902&lastModified:1526715728902;&chart-type=linechart

https://www.gapminder.org/tools/#_state_time_value=2017;&marker_axis/_y_which=corruption/_perception/_index/_cpi&scaleType=linear;;;&data_/_lastModified:1526715614125&lastModified:1526715614125;&chart-type=linechart

image

Expected result: year labels are used max once per year, at point where the line crosses the datapoint (i.e. correct y-axis location), which seems to be the first label in the above picture.

@jheeffer jheeffer changed the title Short time domain on long axis cause repeated years Short time domain on long axis causes repeated year labels May 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant