Giter Club home page Giter Club logo

Comments (7)

ckifer avatar ckifer commented on June 15, 2024 1

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.

ckifer avatar ckifer commented on June 15, 2024

Edit simple-bar-chart (forked) reproduced here

from recharts.

sream avatar sream commented on June 15, 2024

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.

ckifer avatar ckifer commented on June 15, 2024

@sream can you make a reproduction? Where the above doesn't affect the data, its more important when it does

from recharts.

sream avatar sream commented on June 15, 2024

@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.

ckifer avatar ckifer commented on June 15, 2024

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

Edit simple-line-chart (forked)

Heres a blank linechart sandbox

from recharts.

sream avatar sream commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.