Comments (5)
That helps, thanks!
The problem is that this was undocumented behavior that the current maintainers didn't know existed and it wasn't in any test cases. Not allowing a negative number makes sense logically, so that's what was done.
We should give a way back to you to accomplish the same end result if possible
@nikolasrieble any thoughts on this?
from recharts.
@Kaiyrgali previous to what, can you give more details? What version did this happen in, what version are you using?
Can you create a codesandbox example of what you had that worked, vs what does not work now?
from recharts.
@ckifer The problem probably starts with a pull request #3392
For example, in recharts version "2.0.6" the Y axis is thinned out with negative interval values
https://codesandbox.io/p/sandbox/recharts-negative-interval-v-2-0-6-k23tw4
The latest version already has a problem
https://codesandbox.io/p/sandbox/recharts-problem-negative-interval-v-2-12-4-mq5tl9
from recharts.
Thank you for reporting this. I likely introduced the bug some time earlier.
Admittedly, I am surprised that this ever worked, because it contradicts my understanding of the functionality. The interval is supposed to be the amount of ticks left out.
interval = 1 --> Every second tick is shown.
interval = 0 --> Every tick is shown.
In this mental model, I do not understand what a negative interval means.
How would you expect it to work?
What would the difference be between
interval = -1 --> ?
interval = -2 --> ?
from recharts.
interval = -1 all ticks were hidden
interval = -2 and further, some ticks were hidden according to some strange logic
from recharts.
Related Issues (20)
- How to apply gradient on the opposite side of the AreaChart line HOT 2
- 3.0 Bug: Brush internal state
- Tooltip and Legend payload sorting
- Move chart synchronisation to Redux HOT 1
- Move Tooltip state to Redux
- Refactor getComposedData
- Remove Customized component HOT 1
- Export and document hooks
- Support React 19 HOT 20
- Use CodeSandbox Storybook Add-on HOT 13
- [bug] min XAxis domain values over 0 get ignored HOT 6
- how to reduce the size of xaxis? HOT 7
- Position LabelList content based on dimensions of chart or its container HOT 2
- Add tests, documentation, and storybooks for Treemap nesting HOT 2
- Move Axis map to Redux
- BarChart not rendering inside ResponsiveContainer HOT 14
- React 19. No render inside ResponsiveContainer HOT 1
- Add tests for ZAxis HOT 4
- Unable to interact with sub-charts using keyboard in the pie chart. HOT 1
- Add padding/spacing to value labels on the left as they are overlapping with the Y-Axis HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recharts.