From Recharts to Carbon Charts #1576
Unanswered
stanley-regnard
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am currently trying to replace our use of Recharts by Carbon Charts, the idea is to benefit from included features such as fullscreen mode, exports, etc. while retaining current features.
But I am really having a hard time in doing so, I am finding the documentation particularly difficult to work with ; the provided examples don't really fit with what I'm trying to achieve, and I haven't found the documentation really helpful to determine how to use all the different options properly.
A quick example of what I'm trying to achieve:
Recharts
Here I am using:
AreaReferenceLineReferenceAreaThe 2
ReferenceLineare draggable and can be moved around on the X axis ; they also determine the boundaries of the 3ReferenceAreaCarbon Charts (WIP)
Here I am only using 1
AreaChartwith two datasets ; and I have already been stuck on a problem for longer than I hoped, I can't figure out how to remove those empty spaces around my data.I figured it has to do with the linear scale type, as reproduced here: https://codesandbox.io/s/bitter-grass-ssr89g?file=/src/index.js
Also, I can't find any equivalent to
ReferenceAreaorReferenceLineHere are my questions
ReferenceArea/ReferenceLine, or do I need to implement an equivalent myself?stringis a very vague indication for a possible valueBeta Was this translation helpful? Give feedback.
All reactions