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)
- Layer: TypeScript error with latest `@types/react` version HOT 19
- accessibility issue with using 2 charts on the same page. HOT 7
- Pie charts that are 100% a single value have a line that shouldn't be there HOT 5
- how can I pin a tooltip in a chart HOT 8
- Automatically format large axis label values HOT 6
- Tooltip deprecation HOT 1
- Getting lowest and highest possible x and y in a line chart? HOT 22
- Tooltip first render HOT 7
- YAxis is missing if value = null || undefined HOT 2
- different name on tooltip from xaxis on barchart HOT 4
- Better API documentation HOT 3
- Issues with typing Legend props HOT 7
- Stacking Xaxis dataKey text HOT 3
- AreaChart and LineChart do not show the values correctly HOT 1
- Question on exporting `useChartWidth` and similar api HOT 2
- BarChart : Without BarSize bug, with BarSize another Bug HOT 2
- Adjust the colour of the dot at the cursor of the tooltip (AreaChart) HOT 3
- Lines directly on the lower or upper bound of a Y-axis with custom domain and allowDataOverflow gets partially clipped out of view HOT 4
- Active bar and tooltip persist despite mouse cursor leaving chart area HOT 4
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.