plouc / nivo

nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries
https://nivo.rocks
MIT License
13.08k stars 1.02k forks source link

Customize Bump yScale #1337

Closed danilofuchs closed 3 years ago

danilofuchs commented 3 years ago

Is your feature request related to a problem? Please describe. I'm building a chart of rankings over time. This is an annual ranking spanning 7 years. Each year, 20 competitors are chosen by an organisation. In total, 67 distinct people have won a place in any ranking.

The way I modelled the data was the following: Each person is assigned a serie. If in a specific year this person is not featured in the rankings, I assign null to the data point on that year. Otherwise, we position them accordingly.

When plugging this data into Bump, it creates a chart with a y axis from 1 to 67, even though only 1 to 20 is populated with information.

Describe the solution you'd like I would like to be able to modify yScale to limit axis to go from 1 to 20

Describe alternatives you've considered

Additional context image

danilofuchs commented 3 years ago

@wyze I currently have a deadline on finishing this project, and am able to contribute with Nivo on this issue. I just need some guidance.

What other charts/PRs have similar features?

wyze commented 3 years ago

Seems like we might be able to do xScale/yScale like we do for line charts.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

stale[bot] commented 3 years ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!