-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
[Question] Custom Attrs? #470
Comments
You can add custom fields and widgets, you just can't use the |
Hey @nicolaskruchten , thanks for the reply!
I am assuming I can not use these components at all and that I should make my own? This might make sense as I will need an onChange function. The reason I am asking is it would be nice to keep our components looking the same as plotlys components visually. Also, is adding your own attr's currently a feature? Or not really meant to be done? |
Ah, sorry, now that I look at how we've done this in the past, we've not used the exported fields but the widgets and then rewrapped them in To answer your other question: you cannot create your own /cc @VeraZab |
Hey @nicolaskruchten and @VeraZab. I am going to take a shot at implementing this. I am having a few issues though. Is there someone I can contact about this for support? |
This issue is probably a good place :) |
Ok thank you. I am having trouble testing these new components I am creating. I was wondering if someone could help point me in the right direction to easily test these new components to see if they work. What is the go to way to do this at plotly? Also I did an 'npm install' in the forked repository, and it seems that "canvas": "^1.6.9" is breaking it. It breaks on both windows and linux for me. |
Yeah we should see if we can remove |
Is there a way to test it visually? I am wondering how to see my new components easily in a react chart editor after I have implemented them. Perhaps I need to convert the source code into an npm package some how? |
I'd recommend adding them to one of the demo apps or creating your own demo app in the same package, even if you don't commit that app. |
I found the included dev app (with hot reloading) super helpful when working towards a recent PR as well. |
I think your best bet would indeed be to use the existing |
Thanks for your help guys, I made a custom drop down and created a pull request. |
Hey there, I am wondering if it is possible to add custom fields with custom attrs to the react chart editor.
What I am trying to do specifically, is add a new drop down to the Trace Menu. This dropdown will influence the data options for X and Y from our database.
Example:
I noticed the Dropdown and the DataSelector require an attr field. The attr field would be nice to use if it stores the data in the chart, however I do not want it to influence anything on the chart directly.
Is it possible to create custom attrs so that I can add new custom fields to the chart editor?
The text was updated successfully, but these errors were encountered: