Comments (7)
I see. Generally, everything is easier when all your data for the chart is in one array. In this case you have specific series which rely on different dataset causing the need to specify data
on child components. In general, when you do that you need to remove data
from the top level component (but it isn't a rule). The docs and the code can be more clear about this. But yeah, with configurability comes tradeoffs like this being difficult to communicate/manage
from recharts.
from recharts.
Facing the same issue with the LineChart. By not passing allowDuplicatedCategory={false} the Line doesn't draw fully, but if I pass it I'm missing 80% of Tooltips.
from recharts.
@sream can you make a reproduction? Where the above doesn't affect the data, its more important when it does
from recharts.
@ckifer During the creation of the reproduction I've noticed that I've passed the series directly to the LineChart data property and also rendering Lines with it. The weird part is that it even with this obvious misconfiguration it managed to show two tooltips correct but the rest was hidden. Could be connected to the issue mentioned above.
from recharts.
I've passed the series directly to the LineChart data property and also rendering Lines with it.
This is the correct way to configure things unless I'm misunderstanding what you're saying
Heres a blank linechart sandbox
from recharts.
I've passed the series directly to the LineChart data property and also rendering Lines with it.
This is the correct way to configure things unless I'm misunderstanding what you're saying
Here's the completed misconfigured reproduction: CodeSandbox
Maybe it's mentioned somewhere inside the documentation. It would be better if there is a warning of some sort for the developer since the library is built super reusable mistakes like this surely can happen during the initial getting to know.
from recharts.
Related Issues (20)
- ReferenceLine always positioned at 0 if value passed is not a string, console error thrown HOT 23
- The chart shrinks when I apply a larger scale on it's parent container HOT 12
- Lines are not filling the canvas HOT 2
- Unable to resolve type issue on custom axis
- Looking for some guidance on a typing issue HOT 1
- Radial bar components shifts the filled part relative to the unfilled background HOT 15
- Query : Browser support for Recharts HOT 4
- RadarChart PolarAngleAxis getting cut off. HOT 5
- Bar overflowing with custom domain and margin HOT 4
- XAxis ticks not spaced evenly HOT 3
- Vertical graph with scale causes a drift. HOT 2
- Passing a classname to an areachart dot does not assign it. HOT 5
- Passing a classname to cursor does not assign it HOT 2
- XAxis is missing when padding is set and there is 0 or 1 data points
- Allow X/YAxis to start be anchored to a certain value like ReferenceLine HOT 6
- Reference Line not coming with single data point
- Apply `className` to the `RadarChart` component. HOT 2
- Server-side rendering not working with Next.js HOT 7
- The first hover over a Scatter chart point displays the custom tooltip in an incorrect position HOT 4
- Accessibility issue with Brush component HOT 5
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.