-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Plotly React component? #204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@mbonaci Thanks for reaching out! This is an interesting topic. I have seen a couple of the implementations you've referenced, and you're correct. While they work they are a little bit naive in their redraw loops. We are experimenting with Plotly and React at the moment, and what I would suggest to you is the following:
We are still currently experimenting with the best flow for this, so I cannot link you to any examples. Feel free to mess around with the ideas above, and I can get back to you with something a little more concrete when I'm confident it is a solid solution. Does that work for you? Cheers, and thanks for the great Q! |
That's a great feedback. |
I'm currently doing a similar thing with Ember.. very naive atm but will let you know if grows into more. |
Nice feedback @alexander-daniel |
Hi @etpinard, can you explain why you're closing the issue? Does a component exist somewhere? |
This issue is outside the scope of plotly.js and hence this repo. As per our contributing guide, implementation questions should be asked on community.plot.ly or on SO.
This is not in our plans for the coming year. |
I intend to make react-plotlyjs do what is suggested above, but can't tackle it right now due to other priorities. Pull requests for this always welcome if anyone has the time before I do! |
@etpinard I simply can't believe that you don't see how all your new features and marketing efforts are less important than this issue. When a company chooses a charting library, it first looks whether it supports the framework they are using and we all know that React is No1 and is gaining more ground every day. Sorry, I had to get this off my chest. I don't want to troll, just trying to influence your decision (above) because I like your library :) |
I have a feeling I messed something up and accidentally removed my own comment. Here it is:
While I don't know about your marketing and other features and thus couldn't necessarily say this, I think @mbonaci is absolutely right that it doesn't make sense to just ignore/close this issue. ReactJS is huge and not providing out of the box ReactJS component for Plotly will make some potential Plotly users look elsewhere. I speak from personal experience. We are about to switch our charting libraries here at Sematext and our UI is being rewritten with ReactJS and Redux, so when I saw http://recharts.org/ I thought to myself "so do we really want to start using Plotly now? Why not just use Recharts if it has ReactJS support and we are working with ReactJS? What advantage does Plotly provide?". I suspect many people will ask the same questions and seeing that Plotly has a ReactJS component would be a huge plus for Plotly and Plotly would get new users that would otherwise choose another lib. I point this out because I like Plotly and I think providing ReactJS components for Plotly would have very good ROI for Plotly. |
Damn, I would write it myself but don't know Plotly internals, so it would simply take too much time. |
I'd be interested in participating co-sponsoring the development effort, so I wanted to open up an issue on https://www.bountysource.com, but this issue is closed, so it's not available. |
Marco, Do you have a few minutes to speak this morning regarding your co-sponsoring interest?? I can do sometime after 10 or 10:30 this morning? |
Hi @sudburyrob, thanks for that. To be clear, I did not want to fund the whole thing, just pitch in with something like $50 in hope that I could encourage others to do the same (and of course, to demonstrate the importance of this issue to Plotly maintainers). BTW do you have an estimate of the amount that would be needed to fund this implementation? |
@mbonaci As per #204 (comment), this issue will remain closed because it is outside the scope of this repo. I'd recommend opening an issue on either
which ever you find more promising and link it to a bounty source tickey. We apologise for the inconvenience. |
The I would advice using the following Plotly-react tutorial instead |
This issue is fixed in v0.3.6 of react-plotlyjs. Recent plotly changes broke the old method - thanks for bringing that to my attention. |
Did somebody managed to solve this issue? |
@FrantisekGazo don't know, we switched to chart.js. |
@mbonaci thanks, I'll look at that |
@FrantisekGazo did you solve this or did you switch to chart.js as well? I am in a similar boat and deciding what to do |
@codehatcher I did a simple implementation based on this article http://academy.plot.ly/react/3-with-plotly/ . It's not what this issue was created for, but it was good enough for me. |
A good option here for simpler charts is Victory by the folks at Formidable Labs: |
Hi! Just wanted to let everyone know that we're working on an official plotly.js react component! We just published v1.0 of react-plotly.js today. Just a few important notes on the current state and the roadmap: The initial version should work fine but is not yet optimized. Currently, it calls To solve this, we're building a Once I'll leave this issue locked for now, but you're welcome to follow up with discussion of specific usage or design issues on the plotly.js-react repo. |
Removing the |
There are two React components on npm, but those are both naive implementations that simply re-render the whole chart when anything changes.
What would be super cool is that someone with internal knowledge of Plotly tackles this.
Since it seems that React is here to stay, this component would significantly improve the adoption of Plotly.
Oh, and BTW, I was really happy to see the modularity story going forward in big steps. Thx for that.
The text was updated successfully, but these errors were encountered: