Coder Social home page Coder Social logo

Comments (6)

kirill-konshin avatar kirill-konshin commented on August 19, 2024 1

@ParthS007 good job with the sandbox! Independently I came up with exact same solution, glad to see I'm not alone here.

from react-charts.

bvelasquez avatar bvelasquez commented on August 19, 2024

@ParthS007 Did you find a solution for this?

from react-charts.

bvelasquez avatar bvelasquez commented on August 19, 2024

#81

from react-charts.

ParthS007 avatar ParthS007 commented on August 19, 2024

Hi @bvelasquez

After diving deep in the library, I think that there is a bug in calculating CSS transforms for rect elements for the bar.
I was not able to found a full-proof way of solving this but I came up with a workaround (adding null values in the start and end of the data) which is working well for my use case and may help someone else to solve their problem so thought of adding the workaround as a StackOverflow answer.

Here's the answer: https://stackoverflow.com/a/61218420/7994074

I have also made a codesandbox as a working preview:

Edit react charts bar chart

I hope it helps. :)

from react-charts.

RahmanMonjur avatar RahmanMonjur commented on August 19, 2024

Did you try to use the X-axis type as ordinal?

from react-charts.

tannerlinsley avatar tannerlinsley commented on August 19, 2024

Due to a massive overhaul and rewrite of React Charts to TypeScript and a massively upgraded public API, this issue is being bulk closed for triage. The latest version can be tested via the react-charts@beta tag. Documentation is in the process of being upgraded, but thankfully, everything is fully typed now, so you can explore the API that way for now.

If, after testing or playing with the v3 beta, you believe your issue is still not addressed or relevant, feel free to open a new issue.

from react-charts.

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.